powered by
The map functions transform their input by applying a function to each element and returning a list/vector/data.table.
map() returns a list
map()
_lgl(), _int, _dbl,_chr, _df variants return their specified type
_lgl()
_int
_dbl
_chr
_df
_dfr & _dfc Return all data frame results combined utilizing row or column binding
_dfr
_dfc
pmap_dfr.(.l, .f, ..., .id = NULL)
A list to use in pmap
pmap
A function
Other arguments to pass to a function
Whether map_dfr() should add an id column to the finished dataset
map_dfr()
map(c(1,2,3), ~ .x + 1) map_dbl(c(1,2,3), ~ .x + 1) map_chr(c(1,2,3), as.character)
Run the code above in your browser using DataLab