iterate: Iteratively call a function.

Description Usage Arguments Value Author(s)

View source: R/util.R

Description

Iteratively call a function.

Usage

1
  iterate(n, fn, init, ..., bar = FALSE)

Arguments

n

number of times to iterate.

fn

function to iterate.

init

initial value for chain.

...

unused for now.

bar

print a progress bar?

Value

a list of states at each iteration (length n+1).

Author(s)

Grady Weyenberg


grady/evol-mc documentation built on May 14, 2017, 2:05 p.m.