sapply_pb: sapply with a progress bar...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

sapply with a progress bar

Usage

1
sapply_pb(X, FUN, ...)

Arguments

X

see ?sapply for parameter explanation

FUN

see ?sapply

...

see ?sapply

Details

Can be used like standard base:::sapply. The ionly thing it does is create an additional progress bar.

Value

list see ?sapply

Author(s)

Mark Heckmann

See Also

sapply

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)


Search within the OpenRepGrid package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.