iterate: Iteratively call a function.

Description Usage Arguments Value Author(s)

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 17, 2019, 8:01 a.m.