Learn R Programming

medfate (version 2.2.1)

forest_mapWoodyTables: Map forest plot data

Description

Mapping functions to facilitate building forest objects from forest plot data

Usage

forest_mapWoodyTables(x, y, mapping, SpParams, plot.size = NULL)
forest_mapTreeTable(x, mapping, SpParams, plot.size = NULL)
forest_mapShrubTable(y, mapping, SpParams)

Arguments

x

A data frame with tree records in rows and attributes in columns.

y

A data frame with shrub records in rows and attributes in columns.

mapping

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.

SpParams

A data frame with species parameters (see SpParamsMED).

plot.size

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.

Value

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.

See Also

forest