vvply: vvply

Description Usage Arguments Author(s) Examples

View source: R/idprep.R

Description

vvply returns a vector of the same length as X, each element of which is the result of applying FUN to the corresponding element of X. It can fill na and apply arbitrary function like lapply,sapply,vapply or XXply in plyr package.

Usage

1
vvply(X,FUN,...)

Arguments

X

a vector or an expression object. Other objects (including classed objects) will be coerced by base::as.vector.

FUN

the function to be applied to each element of X: see <e2><80><98>Details<e2><80><99>. In the case of functions like div(in this package) the function name must be backquoted or quoted.

...

optional arguments to FUN.

Author(s)

DataXujing

Examples

1
2
3
# not run
library(stringr)
vvply(X,FUN,...)

DataXujing/idprep documentation built on May 28, 2019, 12:24 p.m.