progressReporter: Higher order function to display progress.

Description Usage Arguments References Examples

View source: R/utility.R

Description

Higher order function to display progress.

Usage

1
progressReporter(total, nBars = 100, f, ...)

Arguments

total

Number of total runs in bootstrap

nBars

Number of bars to generate, default is 100.

f

Function used for progress bar.

...

functions to be passed to function f.

References

https://stackoverflow.com/questions/27019190/txtprogressbar-for-parallel-bootstrap-not-displaying-properly

Examples

1
2
3
4
5
 ## Not run: 
 boot_res <- boot::boot(data = data, statistic =
 progressReporter(500, nBars=100, f = boot_func), R = 500)
 
## End(Not run)

adayim/causalMed documentation built on June 2, 2020, 4:11 p.m.