Description Usage Arguments Value Examples
Run a function over a list of elements, distributing the
computations with Spark. Applies a function in a manner that is similar to
doParallel or lapply to elements of a list. The computations are distributed
using Spark. It is conceptually the same as the following
code: lapply(list, func)
1 | spark_lapply(.l, .f)
|
.l |
a vector (atomic or list) |
.f |
he function to be applied to each element of |
an in-memory list
object
1 2 3 4 5 6 7 8 | ## Not run:
spark_session()
doubled <- spark_lapply(1:10, function(x) {2 * x})
# or using tidyverse style lamdas
doubled <- spark_lapply(1:10, ~ 2 * .)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.