Mapping functions to facilitate building forest objects from forest plot data
forest_mapWoodyTables(x, y, mapping, SpParams, plot.size = NULL)
forest_mapTreeTable(x, mapping, SpParams, plot.size = NULL)
forest_mapShrubTable(y, mapping, SpParams)A data frame with tree records in rows and attributes in columns.
A data frame with shrub records in rows and attributes in columns.
A named character vector to specify mappings of columns in x or y into attributes of treeData and shrubData data frames. Accepted names (and the corresponding specifications for the columns in x and y) are:
"Species": Species code (should follow codes in SpParams).
"Species.name": Species name. In this case, the species code will be drawn by matching names with species names in SpParams.
"N": Tree density (in ind./ha).
"plot.size": Plot size (in m2) to which each plot record refers to.
"DBH": Diameter at breast height (in cm).
"Height": Tree or shrub height (in cm).
"Z50": Depth (in mm) corresponding to 50% of fine roots.
"Z95": Depth (in mm) corresponding to 95% of fine roots.
A data frame with species parameters (see SpParamsMED).
The size of plot sampled area (in m2). Alternatively, 'plot.size' can a column in x and specified in mapping to indicate that trees have been measured in different subplots and, therefore, they represent different densities per hectare.
Functions forest_mapTreeTable and forest_mapShrubTable return a data frame with the structure of treeData and shrubData from forest objects. Function forest_mapWoodyTable returns directly a forest object.