ingrowth: Ingrowth imputation for permanent sample plots

Description Usage Arguments Details Value References Examples

View source: R/ingrowth.R

Description

Adds ingrowth records to a tree data frame

Usage

1
ingrowth(treedata, plotdata, plot, meas, tree, diam, thresh)

Arguments

treedata

Tree data frame. Contains at least plot, measurement, and tree identifiers, and diameter values.

plotdata

Plot data frame. Contains at least a plot identifier, and the minimum diameter threshold for the plot.

plot

Name of the plot identifier in treedata and plotdata.

meas

Name of the measurement identifier in treedata.

tree

Name of the tree identifier in treedata.

diam

Name of the diameter values in treedata.

thresh

Name of the minimum diameter threshold in treedata.

Details

The data should not include plots with substantial ingrowth at the oldest measurement. The measurement identifier values must be capable of being sorted in time, e.g., they could be consecutive integer indices, years, or dates. The other identifiers can be of any type (numbers, strings, or factors). It is advisable to discard measurements where the imputed ingrowth basal area is a large fraction of the total.

Value

A data frame with treedata followed by the imputed ingrowth tree records. A logical variable named ingrowth is appended, containing FALSE for the observed trees and TRUE for the ingrowth. The values in the ingrowth records for variables other than the identifiers and diameters are inherited from later measurements and are often meaningless.

References

GarcĂ­a, O. (2021)"Imputing Ingrowth in Even-aged Permanent Sample Plots". Mathematical and Computational Forestry & Natural-Resource Sciences (MCFNS) (to appear)

Examples

1
2
3
 withIngrowth <- ingrowth(treeData, plotData, plot="PlotId",
                          meas = "MeasId", tree = "TreeId",
                          diam = "DBH", thresh = "Thresh")

ogarciav/ingrowth documentation built on Dec. 22, 2021, 4:15 a.m.