sample.data {rconifers} | R Documentation |
A list object of type sample.data
stores all of
the basic information about a data.frame
object
representing a sample of plants.
sample.swo.3 <- list( plots=plots.swo, plants=plants.swo, age=3, x0=0.0 ) class(sample.swo.3) <- "sample.data"
To create the basic data type used in rconifers, you create a list object with the following elements (order is not important):
plots.swo
.plants.swo
.
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/
plants.smc
,
plots.smc
plants.swo
,
plots.swo
,
sample.data
,
set.species.map
,
set.variant
,
smc
,
summary.sample.data
,
swo
,
thin
library( rconifers ) ## Example for SWO variant ## set the variant to the SWO variant and set species map set.species.map( set.variant(0) ) ## grow the data that was originally swo in the smc variant # load and display CONIFERS example plots data( plots.swo ) print( plots.swo ) # load and display CONIFERS example plants data( plants.swo ) print( plants.swo ) # create the sample.data list object sample.swo.3 <- list( plots=plots.swo, plants=plants.swo, age=3, x0=0.0 ) class(sample.swo.3) <- "sample.data"