lapply_pb: complementary tools for Fragman

Description Usage Arguments Details Value References Examples

View source: R/lapply_pb.R

Description

This function is a wrapper of lapply function that allows the drawing of a progress bar to assess the speed of the process.

Usage

1
lapply_pb (X, FUN, ...)

Arguments

X

a vector (atomic or list) or an expression object. See see lapply.

FUN

the function to be applied to each element of X: see lapply.

...

passes another arguments to the typical lapply function.

Details

No major details

Value

Performs lapply drawing a progress bar

res

the same result than using lapply

References

See see lapply

Examples

1
2
l <- sapply(1:200, function(x) list(rnorm(1000)))
lapply_pb(l, mean)

Fragman documentation built on May 29, 2017, 5:21 p.m.