Handy File and String Manipulation


[Up] [Top]

Documentation for package ‘filesstrings’ version 3.4.0

Help Pages

A B C D E F G L M N P R S T U

filesstrings-package 'filesstrings': handy file and string manipulation

-- A --

after_first Text after the 'n'th occurrence of pattern.
after_last Text after the 'n'th occurrence of pattern.
after_nth Text after the 'n'th occurrence of pattern.
all_equal An alternative version of 'base::all.equal()'.
alphord_nums Make string numbers comply with alphabetical order.

-- B --

before_first Text before the 'n'th occurrence of pattern.
before_last Text before the 'n'th occurrence of pattern.
before_last_dot Get the part of a string before the last period.
before_nth Text before the 'n'th occurrence of pattern.

-- C --

can_be_numeric Check if a string could be considered as numeric.
create_dir Create directories if they don't already exist
currency Get the currencies of numbers within a string.

-- D --

dir.remove Remove directories

-- E --

elem Extract a single character from a string, using its index.
elems Extract several single elements from a string.
extend_char_vec Pad a character vector with empty strings.
extract_currencies Get the currencies of numbers within a string.
extract_non_numerics Extract non-numbers from a string.
extract_numbers Extract numbers from a string.

-- F --

file.move Move files around.
filesstrings 'filesstrings': handy file and string manipulation
first_currency Get the currencies of numbers within a string.
first_non_numeric Extract non-numbers from a string.
first_number Extract numbers from a string.
first_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
first_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
first_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
first_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
first_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
first_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.

-- G --

give_ext Ensure a file name has the intended extension.
group_close Group together close adjacent elements of a vector.

-- L --

last_currency Get the currencies of numbers within a string.
last_non_numeric Extract non-numbers from a string.
last_number Extract numbers from a string.
last_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
last_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
last_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
last_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
last_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
last_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.
locate_braces Locate the braces in a string.
locate_first Get the indices of the nth instance of a pattern.
locate_last Get the indices of the nth instance of a pattern.
locate_nth Get the indices of the nth instance of a pattern.

-- M --

match_arg Argument Matching
move_files Move files around.

-- N --

nice_file_nums Make file numbers comply with alphabetical order
nice_nums Make string numbers comply with alphabetical order.
nth_currency Get the currencies of numbers within a string.
nth_non_numeric Extract non-numbers from a string.
nth_number Extract numbers from a string.
nth_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
nth_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
nth_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
nth_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
nth_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
nth_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.

-- P --

paste_elems Extract bits of a string and paste them together.
put_in_pos Put specified strings in specified positions in an otherwise empty character vector.

-- R --

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

-- S --

singleize Remove back-to-back duplicates of a pattern in a string.
split_by_numbers Split a string by its numeric characters.
split_by_nums Split a string by its numeric characters.
split_camel_case Split a string based on CamelCase
str_after_first Text after the 'n'th occurrence of pattern.
str_after_last Text after the 'n'th occurrence of pattern.
str_after_nth Text after the 'n'th occurrence of pattern.
str_alphord_nums Make string numbers comply with alphabetical order.
str_before_first Text before the 'n'th occurrence of pattern.
str_before_last Text before the 'n'th occurrence of pattern.
str_before_last_dot Get the part of a string before the last period.
str_before_nth Text before the 'n'th occurrence of pattern.
str_can_be_numeric Check if a string could be considered as numeric.
str_elem Extract a single character from a string, using its index.
str_elems Extract several single elements from a string.
str_extend_char_vec Pad a character vector with empty strings.
str_extract_currencies Get the currencies of numbers within a string.
str_extract_non_numerics Extract non-numbers from a string.
str_extract_numbers Extract numbers from a string.
str_first_currency Get the currencies of numbers within a string.
str_first_non_numeric Extract non-numbers from a string.
str_first_number Extract numbers from a string.
str_first_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
str_first_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
str_first_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
str_first_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
str_first_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
str_first_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.
str_give_ext Ensure a file name has the intended extension.
str_last_currency Get the currencies of numbers within a string.
str_last_non_numeric Extract non-numbers from a string.
str_last_number Extract numbers from a string.
str_last_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
str_last_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
str_last_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
str_last_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
str_last_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
str_last_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.
str_locate_braces Locate the braces in a string.
str_locate_first Get the indices of the nth instance of a pattern.
str_locate_last Get the indices of the nth instance of a pattern.
str_locate_nth Get the indices of the nth instance of a pattern.
str_match_arg Argument Matching
str_nice_nums Make string numbers comply with alphabetical order.
str_nth_currency Get the currencies of numbers within a string.
str_nth_non_numeric Extract non-numbers from a string.
str_nth_number Extract numbers from a string.
str_nth_number_after_first Find the 'n'th number after the 'm'th occurrence of a pattern.
str_nth_number_after_last Find the 'n'th number after the 'm'th occurrence of a pattern.
str_nth_number_after_mth Find the 'n'th number after the 'm'th occurrence of a pattern.
str_nth_number_before_first Find the 'n'th number before the 'm'th occurrence of a pattern.
str_nth_number_before_last Find the 'n'th number before the 'm'th occurrence of a pattern.
str_nth_number_before_mth Find the 'n'th number before the 'm'th occurrence of a pattern.
str_paste_elems Extract bits of a string and paste them together.
str_put_in_pos Put specified strings in specified positions in an otherwise empty character vector.
str_remove_quoted Remove the quoted parts of a string.
str_singleize Remove back-to-back duplicates of a pattern in a string.
str_split_by_numbers Split a string by its numeric characters.
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_trim_anything Trim something other than whitespace.

-- T --

to_vec Convert a string to a vector of characters
trim_anything Trim something other than whitespace.

-- U --

unitize_dirs Put files with the same unit measurements into directories