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)

OpenRepGrid documentation built on May 2, 2019, 4:54 p.m.