strapply: Helper function for read.csv.sql

Description Usage Arguments Details Value Note Author(s) References See Also

Description

The same as strapply in the gsubfn package, but with tcltk capabilities removed.

Usage

1
2
3
strapply(X, pattern, FUN = function(x, ...) x, backref = NULL, ...,
  empty = NULL, ignore.case = FALSE, perl = TRUE, engine = "R",
  simplify = FALSE, USE.NAMES = FALSE, combine = c)

Arguments

X

list or (atomic) vector of character strings to be used

pattern

character string containing a regular (or character string for fixed=TRUE to be matched in the given character vector.

FUN

a function, formula, character string, list or proto object to be applied to each element of X. See discussion in gsubfn.

backref

see gsubfn

...

optional arguments to gsubfn

empty

If there is no match to a string return this value.

ignore.case

If TRUE then case is ignored in the pattern argument.

perl

If TRUE then engine="R" is used with perl regular expressions. It is required to keep this argument at TRUE, since tcl engine capabilities have been removed from this function.

engine

Should always be set to "R", since the tcl engine is not available in the tornado package.

simplify

logical or function. If logical, should the result be simplified to a vector or matrix, as in sapply if possible? If function, that function is applied to the result with each component of the result passed as a separate argument. Typically if the form is used it will typically be specified as rbind.

USE.NAMES

logical; if TRUE and if X is character, use X as 'names' for the result unless it had names already.

combine

combine is a function applied to the components of the result of FUN. The default is "c". "list" is another common choice. The default may change to be "list" in the future.

Details

See details in gsubfn package.

Value

A list of character strings

Note

Does not need to be used directly in tornado; makeDb wraps this entirely.

Author(s)

G. Grothendieck

References

http://cran.r-project.org/web/packages/gsubfn/gsubfn.pdf

See Also

makeDb


alyssafrazee/read.csv.sql documentation built on May 12, 2019, 2:31 a.m.