Handy String and File Manipulation


[Up] [Top]

Documentation for package ‘filesstrings’ version 0.4.0

Help Pages

AllEqual Check if all elements are equal.
BeforeLastDot Get the part of a string before the last period.
CanBeNumeric Check if a string could be considered as numeric.
CharListElemsNthElem Get the nth element of each vector in a list of numeric or character vectors.
CountMatches Count the number of the matches of a pattern in a string.
CreateDirsIfNotThere Create directories if they don't already exist.
DuplicatesToSingles Remove back-to-back duplicates of a pattern in a string.
ExtendCharVec Pad a character vector with empty strings.
ExtractNonNumerics Extract numbers (or non-numbers) from a string.
ExtractNumbers Extract numbers (or non-numbers) from a string.
GetCurrencies Get the currencies of numbers within a string.
GetCurrency Get the currencies of numbers within a string.
GiveExt Ensure a file name has the intended extension.
GroupClose Group together close adjacent elements of a vector.
LocateBraces Locate the braces in a string.
MergeTablesOnDisk Merge Tables.
MoveFiles Move files around.
NiceFileNums Make file numbers comply with alphabetical order
NiceNums Make string numbers comply with alphabetical order
NthNonNumeric Extract numbers (or non-numbers) from a string.
NthNumber Extract numbers (or non-numbers) from a string.
NumListElemsNthElem Get the nth element of each vector in a list of numeric or character vectors.
PasteCollapseListElems Apply paste collapse to each element of a list.
PasteDifferentLengths Paste vectors/files with different lengths/numbers of lines.
PutFilesInDir Put files in a directory
PutInPos Put specified strings in specified positions
RemoveDirs Remove directories.
RemoveFileNameSpaces Remove spaces in file names
RemoveQuoted Remove the quoted parts of a string.
RenameWithNums Replace file names with numbers.
SplitCamelcase Split a string based on camelcase
StrAfterNth Text before or after nth occurrence of pattern.
StrBeforeNth Text before or after nth occurrence of pattern.
StrElem Extract a single character of a string, using its index.
StrElemsPasted Extract bits of a string and paste them together
StringsWithPatterns Which strings match the patterns?
StringToVec Convert a string to a vector of characters
StrListRemoveEmpties Remove empty strings from a character list.
StrSplitByNums Split a string by its numeric charachters.
TrimAnything Trim something other than whitespace
UnitDirs Put files with the same unit measurements into directories.