sapply_pb | R Documentation |
Can be used like standard base:::sapply. The only thing it does is create an additional progress bar.
sapply_pb(X, FUN, ...)
X |
see ?sapply for parameter explanation |
FUN |
see ?sapply |
... |
see ?sapply |
list see ?sapply
sapply()
## Not run:
l <- sapply(1:20000, function(x) list(rnorm(1000)))
head(sapply_pb(l, mean))
# performance comparison
l <- sapply(1:20000, function(x) list(rnorm(1000)))
system.time(sapply(l, mean))
system.time(sapply_pb(l, mean))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.