filesstrings v2.5.0

0

Monthly downloads

0th

Percentile

Handy File and String Manipulation

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

Functions in filesstrings

Name Description
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 A more flexible version of all.equal for vectors.
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.
No Results!

Vignettes of filesstrings

Name
files.Rmd
strings.Rmd
No Results!

Last month downloads

Details

Type Package
License GPL-3
Encoding UTF-8
LazyData true
RoxygenNote 6.0.1
LinkingTo Rcpp
SystemRequirements C++11
URL https://www.github.com/rorynolan/filesstrings
BugReports https://www.github.com/rorynolan/filesstrings/issues
VignetteBuilder knitr
NeedsCompilation yes
Packaged 2018-06-29 14:44:43 UTC; rnolan
Repository CRAN
Date/Publication 2018-06-29 15:38:55 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/filesstrings)](http://www.rdocumentation.org/packages/filesstrings)