List of utilities I use often in R.


[Up] [Top]

Documentation for package ‘utilitiesR’ version 1.6.2

Help Pages

utilities-package Utilities package in R.
createFilename create a file path based off a given format.
dir.browse Text-based interactive directory selection.
DWE *D*isplays a command, *W*aits, and *E*xecutes.
euclidDist return euclidean distance between successive rows in a matrix.
evaluate evaluate string as an R expression
evaluateSplit convert a delimited string to a vector.
file.browse Text-based interactive file selection.
formatGPS formats an nx2 array with 'lon,lat' to "%.10fE, %.10fS".
getExtension get the extension of a path
getFilename get the file name of a path not including the extension.
getLastChar gets the last character of a string
getProgram retrieves path to system executable.
getUniqueFilename Generates a unique file name by incrementing a counter.
GPS2UTM converts GPS coordinates to UTM coordinates
is.empty See if an argument is na, null, or length 0 (syntactic sugar).
loader loads an Rdata file and returns a list of the contents
make2Drot make 2D rotation matrix anticlockwise by theta
makeIfNotExists makes a directory, if it doesn't already exist.
muffle muffles as much output as possible (except errors)
my.package.skeleton Create a skeleton for a new source package
package-utilities Utilities package in R.
PEv *P*rints a string and then *Ev*aluates it
reload reload a package.
sortPointsRectangle sort vertices in a rectangle in anticlockwise fashion.
stopf throw a formated error Essentially calls 'stop(sprintf(...))'
stringify create a string to reconstruct an object
trim trim white spaces from a string
tryCatch.W.E tryCatch both warnings and errors
utilities Utilities package in R.
UTM2GPS converts UTM coordinates to GPS coordinates
verbosePrint output to screen
verbosePrintf output to screen, like sprintf.
verifyInput asks a question and waits for valid input.
wait Pauses evaluation, waiting for user input.
warningf throw a formatted warning. Essentially calls 'warning(sprintf(...))'