Learn R Programming

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

filesstrings (version 2.5.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.5.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Rory Nolan

Last Published

June 29th, 2018

Functions in filesstrings (2.5.0)

str_after_nth

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

Group together close adjacent elements of a vector.
put_in_pos

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

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

Convert a string to a vector of characters
str_with_patterns

Which strings match the patterns?
str_split_camel_case

Split a string based on CamelCase
str_split_by_nums

Split a string by its numeric characters.
unitize_dirs

Put files with the same unit measurements into directories
remove_filename_spaces

Remove spaces in file names
remove_quoted

Remove the quoted parts of a string.
str_elem

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

Trim something other than whitespace
rename_with_nums

Replace file names with numbers
remove_dir

Remove directories
singleize

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

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

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

Pad a character vector with empty strings.
all_equal

before_last_dot

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

filesstrings: handy file and string manipulation
filesstrings-defunct

Defunct functions
create_dir

Create directories if they don't already exist
can_be_numeric

Check if a string could be considered as numeric.
match_arg

Argument Matching
currency

Get the currencies of numbers within a string.
give_ext

Ensure a file name has the intended extension.
nice_nums

Make string numbers comply with alphabetical order
move_files

Move files around.
locate_braces

Locate the braces in a string.
nice_file_nums

Make file numbers comply with alphabetical order
str_paste_elems

Extract bits of a string and paste them together
str_nth_instance_indices

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