Handy File and String Manipulation


[Up] [Top]

Documentation for package ‘filesstrings’ version 3.0.0

Help Pages

filesstrings-package 'filesstrings': handy file and string manipulation
all_equal A more flexible version of all.equal for vectors.
before_last_dot Get the part of a string before the last period.
can_be_numeric Check if a string could be considered as numeric.
count_matches Defunct functions in 'filesstrings'
create_dir Create directories if they don't already exist
currency Get the currencies of numbers within a string.
dir.remove Remove directories
extend_char_vec Pad a character vector with empty strings.
extract_non_numerics Extract non-numbers from a string.
extract_numbers Extract numbers from a string.
file.move Move files around.
filesstrings 'filesstrings': handy file and string manipulation
filesstrings-defunct Defunct functions in 'filesstrings'
first_non_numeric Extract non-numbers from a string.
first_number Extract numbers from a string.
first_number_after_first Find the nth number after the mth occurrence of a pattern.
first_number_after_last Find the nth number after the mth occurrence of a pattern.
first_number_after_mth Find the nth number after the mth occurrence of a pattern.
first_number_before_first Find the nth number before the mth occurrence of a pattern.
first_number_before_last Find the nth number before the mth occurrence of a pattern.
first_number_before_mth Find the nth number before the mth occurrence of a pattern.
get_currencies Get the currencies of numbers within a string.
get_currency Get the currencies of numbers within a string.
give_ext Ensure a file name has the intended extension.
group_close Group together close adjacent elements of a vector.
last_non_numeric Extract non-numbers from a string.
last_number Extract numbers from a string.
last_number_after_first Find the nth number after the mth occurrence of a pattern.
last_number_after_last Find the nth number after the mth occurrence of a pattern.
last_number_after_mth Find the nth number after the mth occurrence of a pattern.
last_number_before_first Find the nth number before the mth occurrence of a pattern.
last_number_before_last Find the nth number before the mth occurrence of a pattern.
last_number_before_mth Find the nth number before the mth occurrence of a pattern.
locate_braces Locate the braces in a string.
match_arg Argument Matching
move_files Move files around.
nice_file_nums Make file numbers comply with alphabetical order
nice_nums Make string numbers comply with alphabetical order
nth_non_numeric Extract non-numbers from a string.
nth_number Extract numbers from a string.
nth_number_after_first Find the nth number after the mth occurrence of a pattern.
nth_number_after_last Find the nth number after the mth occurrence of a pattern.
nth_number_after_mth Find the nth number after the mth occurrence of a pattern.
nth_number_before_first Find the nth number before the mth occurrence of a pattern.
nth_number_before_last Find the nth number before the mth occurrence of a pattern.
nth_number_before_mth Find the nth number before the mth occurrence of a pattern.
put_in_pos Put specified strings in specified positions in an otherwise empty character vector.
remove_dir Remove directories
remove_filename_spaces Remove spaces in file names
remove_quoted Remove the quoted parts of a string.
rename_with_nums Replace file names with numbers
singleize Remove back-to-back duplicates of a pattern in a string.
str_after_first Text before or after nth occurrence of pattern.
str_after_last Text before or after nth occurrence of pattern.
str_after_nth Text before or after nth occurrence of pattern.
str_before_first Text before or after nth occurrence of pattern.
str_before_last Text before or after nth occurrence of pattern.
str_before_nth Text before or after nth occurrence of pattern.
str_elem Extract a single character from a string, using its index.
str_first_instance_indices Get the indices of the nth instance of a pattern.
str_last_instance_indices Get the indices of the nth instance of a pattern.
str_nth_instance_indices Get the indices of the nth instance of a pattern.
str_paste_elems Extract bits of a string and paste them together
str_split_by_nums Split a string by its numeric characters.
str_split_camel_case Split a string based on CamelCase
str_to_vec Convert a string to a vector of characters
str_with_patterns Defunct functions in 'filesstrings'
trim_anything Trim something other than whitespace
unitize_dirs Put files with the same unit measurements into directories