ostrapply: Helper function for read.csv.sql

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

Description

Same as the strapply or ostrapply functions in gsubfn package, but with tcltk capabilities removed.

Usage

1
2
ostrapply(X, pattern, FUN = function(x, ...) x, ignore.case = FALSE, ...,
  empty = NULL, 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.

ignore.case

If TRUE then case is ignored in the pattern argument.

...

optional arguments to gsubfn.

empty

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

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 strapply in gsubfn. In the tornado package this function should rarely be called on its own. It is an internal process of read.csv.sql, which is an internal process of makeDb.

Value

A list of character strings.

Author(s)

G. Grothendieck

References

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

See Also

makeDb,link{read.csv.sql}


leekgroup/derfinder documentation built on May 20, 2019, 11:30 p.m.