farm: Evaluate an expression for a set of seeds.

Description Usage Arguments See Also

View source: R/gather.R

Description

For each seed, set the seed, then evaluate the expression. The farm function is used to generate data. The Seeds for the state of the random numbrer generator is stored in the attribute 'ending.seed', and will be used by harvestr functions for any other random number generation that is needed.

Usage

1
2
3
4
5
farm(seeds, expr, envir = parent.frame(), ...,
  cache = getOption("harvestr.use.cache", defaults$cache()),
  time = getOption("harvestr.time", defaults$time()),
  .parallel = getOption("harvestr.parallel", defaults$parallel()),
  .progress = getOption("harvestr.progress", defaults$progress()))

Arguments

seeds

a list of seeds can be obtained though gather

expr

an expression to evalutate with the different seeds.

envir

an environment within which to evaluate expr.

...

extra arguments

cache

should cached results be used or generated?

time

should results be timed?

.parallel

should the computations be run in parallel?

.progress

Show a progress bar?

See Also

Other harvest: gather, harvest, plant, sprout


harvestr documentation built on May 30, 2017, 2:39 a.m.