map.Rd
Apply functions to elements of a vector
map(x, fun, ..., .if, .at) map_chr(x, fun, ..., .if, .at) map_int(x, fun, ..., .if, .at) map_dbl(x, fun, ..., .if, .at) map_df(x, fun, ..., .if, .at)
A data object.
A function.
Additional arguments to pass to fun.
fun
A logical vector the same length as x or a function that will evaluate to a logical vector the same length as x. Elements that are TRUE will have fun applied to them.
x
TRUE
A character vector of names to apply fun to.
data.frame
base::lapply(), purrr::map(), base::Control
base::lapply()
purrr::map()
#---------------------------------------------------------------------------- # map*() examples #---------------------------------------------------------------------------- library(bkdat)