Learn R Programming

Maeswrap (version 1.4.11)

utilities: Utility functions

Description

Several simple functions for handling strings etc.

Usage

delempty(x)
maybeQuote(x)
mayberead(...)
printme(x, SEP=" ")
trim(str)

Arguments

x
A string, or a character vector
str
Also a string
...
A file name
SEP
Separator in printing the namelist

Details

delempty deletes elements of a vector that are empty strings. maybeQuote returns the quoted string unless the argument can be successfully converted to numeric. printme is a utility function for printing namelists. trim deletes leading and trailing whitespace in a character string.

See Also

readPAR