progress.meter {cwhmisc}R Documentation

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).

Author(s)

Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN

Examples

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

[Package cwhmisc version 2.0.1 Index]