Learn R Programming

lares (version 4.4)

statusbar: Progressbar for for loops

Description

This function lets the user view a progressbar for a 'for' loop. Taken from https://github.com/STATWORX/helfRlein/blob/master/R/statusbar.R

Usage

statusbar(run, max.run, percent.max = 40L, info = run)

Arguments

run

Iterator. for loop or an integer with the current loop number

max.run

Number. Maximum number of loops

percent.max

Integer. Indicates how wide the progress bar is printed

info

String. With additionaly information to be printed at the end of the line. The default is run.