rand.seed {rconifers} | R Documentation |
Initialize or reset the random number generator for the CONIFERS forest growth model.
rand.seed( control )
control |
a list of control options. See 'Details'. |
The rand.seed
function is used to either initialize or reset
the random behavior of the CONIFERS growth model.
The 'control' argument is a list that can supply any of the following components:
Jeff D. Hamann jeff.hamann@forestinformatics.com,
Martin W. Ritchie mritchie@fs.fed.us
Ritchie, M.W. 2008 . User's Guide and Help System for CONIFERS: A Simulator for Young Conifer Plantations Version 4.10. See http://www.fs.fed.us/psw/programs/ecology_of_western_forests/projects/conifers/
impute
,
sample.data
,
set.species.map
library( rconifers ) # turn off the random error component rand.seed( control=list(use.random.error=0 ) ) # reset the random error component and set the seed to 4326 rand.seed( control=list(use.random.error=1,random.seed=4326 ) ) # reset the random error component and set the seed to a random number between 0 and 10000 germ<-sample(1:9999,1) rand.seed( control=list(use.random.error=1, random.seed=germ) )