Learn R Programming

TDPanalysis (version 1.0)

SpWd_Area_calc: Sapwood area calculation

Description

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

Usage

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.

Value

Return a numerical vector containing the sapwood area

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.

Examples

Run this code
# NOT RUN {
diam = c(12,14,16,13,15)
SpWd_Area_calc(diam=diam, SpWd_frac=0.2)
# }

Run the code above in your browser using DataLab