vap | R Documentation |
Wrappers for vapply
vap_int(.x, .f, ..., .nm = FALSE)
vap_dbl(.x, .f, ..., .nm = FALSE)
vap_chr(.x, .f, ..., .nm = FALSE)
vap_lgl(.x, .f, ..., .nm = FALSE)
vap_cplx(.x, .f, ..., .nm = FALSE)
vap_date(.x, .f, ..., .nm = FALSE)
.x |
A vector of values |
.f |
A function to apply to each element in vector |
... |
Additional arguments passed to |
.nm |
Logical, if |
These are simply wrappers for base::vapply()
to shorten lines.
Each function is designed to use specific vector types:
integer
double
character
logical
complex
Date
A vector of type matching the intended value in the function name.
base::vapply()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.