Description Usage Arguments Value
Performs vctrs
- compatibel mapping.
Requries strongly typed input and output. By default returns vctrs::list_of
.
*_pt
version performs conversion to the common ptype
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | vmap(.x, .f, ..., .ptype = NULL)
vmap_pt(.x, .f, ..., .ptype = NULL)
vmap2(.x, .y, .f, ..., .ptype = NULL)
vmap2_pt(.x, .y, .f, ..., .ptype = NULL)
vmap_if(.x, .p, .f, ..., .else = NULL, .ptype = NULL)
vmap_at(.x, .at, .f, ..., .ptype = NULL)
vkeep(.x, .p, ..., .ptype = NULL)
vdiscard(.x, .p, ..., .ptype = NULL)
vimap(.x, .f, ..., .ptype = NULL)
vimap_pt(.x, .f, ..., .ptype = NULL)
|
.x, .y |
Vectors to iterate over. |
.f |
Mapper function. |
... |
Additional paramters passed to mappers |
.ptype |
Fallback |
.p |
Predicate function. |
.else |
Alternative mapper for |
.at |
Location to map at. |
Either list_of
or vector of common ptype
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.