omxLapply | R Documentation |
If the snowfall library is loaded, then this function calls sfLapply
. Otherwise it invokes lapply
.
omxLapply(x, fun, ...)
x |
a vector (atomic or list) or an expressions vector. Other objects (including classed objects) will be coerced by |
fun |
the function to be applied to each element of |
... |
optional arguments to |
omxApply
, omxSapply
x <- list(a = 1:10, beta = exp(-3:3), logic = c(TRUE,FALSE,FALSE,TRUE))
# compute the list mean for each list element
omxLapply(x,mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.