Description Usage Arguments Examples
Injects execution of do
and if .data
is
groupped, executes the operation in parallel.
1 2 3 | parallelize(.data)
do_.parallel(.data, ..., env = parent.frame(), .dots = list())
|
.data |
data object transformed with [parallelize] |
... |
expressions to apply to each group; see [dplyr::do] |
env |
the environment in which functions should be evaluated; see [dplyr::do] |
.dots |
pair/values of expressions coercible to lazy objects; see [dplyr::do] |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
iris %>%
group_by(Species) %>%
parallelize %>%
do({
# something that's better run in paralle
data.frame(result = 1)
})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.