Learn R Programming

⚠️There's a newer version (3.4.0) of this package.Take me there.

filesstrings (version 2.4.0)

Handy File and String Manipulation

Description

Convenient functions for moving files, deleting directories, and a variety of string operations that facilitate manipulating files and extracting information from strings.

Copy Link

Version

Install

install.packages('filesstrings')

Monthly Downloads

1,029

Version

2.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Rory Nolan

Last Published

May 18th, 2018

Functions in filesstrings (2.4.0)

move_files

Move files around.
remove_filename_spaces

Remove spaces in file names
remove_quoted

Remove the quoted parts of a string.
str_nth_instance_indices

Get the indices of the \(n\)th instance of a pattern.
trim_anything

Trim something other than whitespace
unitize_dirs

Put files with the same unit measurements into directories
singleize

Remove back-to-back duplicates of a pattern in a string.
rename_with_nums

Replace file names with numbers
str_paste_elems

Extract bits of a string and paste them together
str_split_camel_case

Split a string based on CamelCase
str_split_by_nums

Split a string by its numeric characters.
str_after_nth

Text before or after \(n\)th occurrence of pattern.
str_elem

Extract a single character from a string, using its index.
str_with_patterns

Which strings match the patterns?
nice_file_nums

Make file numbers comply with alphabetical order
str_to_vec

Convert a string to a vector of characters
filesstrings-defunct

Defunct functions
all_equal

before_last_dot

Get the part of a string before the last period.
extend_char_vec

Pad a character vector with empty strings.
count_matches

Count the number of the matches of a pattern in a string.
filesstrings

filesstrings: handy file and string manipulation
can_be_numeric

Check if a string could be considered as numeric.
put_in_pos

Put specified strings in specified positions in an otherwise empty character vector.
remove_dir

Remove directories
group_close

Group together close adjacent elements of a vector.
locate_braces

Locate the braces in a string.
give_ext

Ensure a file name has the intended extension.
nice_nums

Make string numbers comply with alphabetical order
currency

Get the currencies of numbers within a string.
create_dir

Create directories if they don't already exist
extract_numbers

Extract numbers (or non-numbers) from a string.
match_arg

Argument Matching
nth_number_after_mth

Find the \(n\)th number after the \(m\)th occurrence of a pattern.