SpWd_Area_calc: Sapwood area calculation

Description Usage Arguments Details Value Examples

Description

Calculate sapwood area based on diameter, heartwood diameter and sapwood fraction

Usage

1
SpWd_Area_calc(diam, SpWd_frac = 1, HtWd_diam = 0)

Arguments

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.

Details

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.

Value

Return a numerical vector containing the sapwood area

Examples

1
2
diam = c(12,14,16,13,15)
SpWd_Area_calc(diam=diam, SpWd_frac=0.2)

Example output

[1] 108.5734 147.7805 193.0195 127.4230 169.6460

TDPanalysis documentation built on Feb. 28, 2020, 9:09 a.m.