Learn R Programming

cwhmisc (version 3.0)

progress.meter: Monitor the progress of a repetitive calculation.

Description

progress.meter writes a symbol to the output at each invocation. The symbol is usually a ".", a "+" if i %% == 0, and (ii %/% 10) %% 10 if ii %% 10 == 0. If ii %% 50 == 0, a line break will be written and i printed.

Usage

progress.meter(i)

Arguments

i
An integer.

Value

  • invisible(NULL).

Examples

Run this code
cat("0")
for (ii in seq(500)) {
  # do something time consuming
  progress.meter(ii)
}
cat("")

Run the code above in your browser using DataLab