Learn R Programming

harvestr (version 0.7.1)

farm: Evaluate an expression for a set of seeds.

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

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