SpWd_Area_calc {TDPanalysis} | R Documentation |
Calculate sapwood area based on diameter, heartwood diameter and sapwood fraction
SpWd_Area_calc(diam, SpWd_frac = 1, HtWd_diam = 0)
diam |
Vector with diameter. |
SpWd_frac |
Numerical (from 0 to 1). Indicate the fraction of the diameter which is sapwood |
HtWd_diam |
Vector with diameter of the heartwood. |
If SpWD_frac and HtWd_diam are both entered, the function will return an error. Units of "diam" and "HtWd_diam" should be the same.
Return a numerical vector containing the sapwood area
diam = c(12,14,16,13,15)
SpWd_Area_calc(diam=diam, SpWd_frac=0.2)