| pool_sapply | R Documentation |
Parallel sapply with Supervision
pool_sapply(X, FUN, ..., simplify = TRUE, pool = NULL)
X |
List or vector to iterate over. |
FUN |
Function to apply. |
... |
Additional arguments to FUN. |
simplify |
Logical. Simplify result to vector/matrix? |
pool |
A |
Simplified result if possible, otherwise a list.
pool_create(2)
result <- pool_sapply(1:4, function(x) x^2, pool = pool_get())
pool_stop()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.