mcmap | R Documentation |
mcmap*()
are simple wrappers around parallel::mclapply()
that allow the
usage similar to the purrr::map()
family.
mcmap(.x, .f, ...)
mcmap_lgl(.x, .f, ...)
mcmap_int(.x, .f, ...)
mcmap_dbl(.x, .f, ...)
mcmap_chr(.x, .f, ...)
mcmap_vec(.x, .f, ..., .ptype = NULL)
mcwalk(.x, .f, ...)
.x |
A vector or list to be mapped over. |
.f |
A function or formula to be applied to each element of |
... |
Additional arguments passed to |
.ptype |
A prototype to specify the output type. |
A list or vector of the same length as .x
.
purrr::list_simplify()
is used to convert the result to a vector.
mcwalk()
returns the input .x
invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.