Learn R Programming

Fragman (version 1.0.9)

lapply_pb: complementary tools for Fragman

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

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.

Value

Performs lapply drawing a progress bar

res

the same result than using lapply

Details

No major details

References

See see lapply

Examples

Run this code
# NOT RUN {
l <- sapply(1:200, function(x) list(rnorm(1000)))
lapply_pb(l, mean)
# }

Run the code above in your browser using DataLab