
Last chance! 50% off unlimited learning
Sale ends in
tprTrees
Function to simulate an object of class tprTrees
simTrees(par = NULL)
an object of class tprTrees
list of lists, one for each species
Function simulates trees based on given distributions and petterson height function. Dbh can be simulated using normal ('norm'), weibull or gamma distribution. Others might be added.
The par
-list of each species needs the following named entries:
spp
- species code, n
- number of trees, ddist
-
distribution of dbh, dpar
- list of parameter of the distribution,
i.e. mu
and sd
for normal distribution and shape
and
scale
for weibull and gamma distribution. The latter both might use
lag
to offset the estimated diameter by this amount.
par <- list(list(spp=1, n=10, ddist="norm", dpar=list(mu=30, sd=4)),
list(spp=3, n=5, ddist="norm", dpar=list(mu=40, sd=2)))
simTrees(par)
Run the code above in your browser using DataLab