For loop function with lapply syntax and pretty progress bar
Usage
pbfor(X, FUN, pbname = NULL, simplify = FALSE, ...)
Arguments
- X
Object to iterate over
- FUN
Function to apply to object X
- pbname
Name of progress bar (optional)
- simplify
Try simplifying output (TRUE/FALSE)
- ...
Additional arguments to pass to FUN
Value
Returns output from iteration