TPH: Trees Per Hectare

View source: R/TPH.R

TPHR Documentation

Trees Per Hectare

Description

This function calculates the Trees Per Hectare for each plot within your data set. The minimum diameter of trees included in the analysis is 10cm. This diameter can be changed using the CUTOFF parameter in this function. You can use cutoff to either include trees smaller than 10cm or to identify how many larger trees are in your stand.

Usage

TPH(Stand, Plot, DBH, EXPF, CUTOFF = TRUE)

Arguments

Stand

The unique Stand ID for each Plot.

Plot

The unique Plot ID for each Plot.

DBH

Diameter at breast height in cm.

EXPF

Expansion factor for each tree.

CUTOFF

The minimum diameter in cm of a tree to be included in the analysis. If left blank the default CUTOFF is 10cm.

Details

This function requires that you calculate the Expansion Factor for each tree in your inventory. See the EXP.F function if you need to do this.

Value

Returns a vector of the length N with the trees per hectare for each plot.

TPH(Stand, Plot, DBH, EXPF, 20) <- this is an example of a CUTOFF that only includes trees >= 20cm.

Trees Per Hectare is a dependency for a number of other functions that may be useful in your analysis, so using a standard naming convention, while always good practice, will help when applying to additional functions. (ex: TPH, TreePH).

Author(s)

Ryan Smith

See Also

EXP.F

Other Plot Level Functions: BA.Larger.Trees(), BAPH(), CCF.Larger(), CrownCompF(), DBHFuns(), HeightPredict(), RD(), SDI.Max(), SDI.Plot(), TallestTrees(), Unique.ID()

Examples

Stand <- c(1,1,1,1,1,1,1,1,1)
Plot  <- c(1,1,1,1,1,2,2,2,2)
DBH   <- c(5, 6, 33, 23, 11, 22, 4, 17, 40)
EXPF  <- c(15, 15, 15, 15, 15, 15, 15, 15, 15)
TPH(Stand, Plot, DBH, EXPF)
TPH(Stand, Plot, DBH, EXPF, 7)
TPH(Stand, Plot, DBH, EXPF, 20)


ryanmismith/inventoryfunctions documentation built on Aug. 5, 2022, 2:22 a.m.