Description Usage Arguments Value Examples
Calculates basal area of stands, either total or by species
1 | basalArea(x, bySpecies = FALSE, speciesNames = FALSE, modelNames = FALSE)
|
x |
A data frame with tree records in rows and columns 'ID', 'Species', 'DBH' (in cm) and 'N' (ha-1) |
bySpecies |
A flag to indicate that basal area of the stand should be disaggregated bySpecies |
speciesNames |
A flag to replace species codes by names in the output |
modelNames |
A flag to replace species codes by species model names in the output |
If bySpecies = FALSE
returns a vector of basal area per plot 'ID', or a single value if column 'ID' is not included in the input.
If bySpecies = TRUE
returns a matrix with plot 'ID' in rows and species in columns, or a numeric vector of basal area per species if 'ID' is not included in the input.
1 2 3 4 5 | data(exampleTreeData)
basalArea(exampleTreeData)
basalArea(exampleTreeData, bySpecies = TRUE, speciesNames = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.