ba {CTFS}R Documentation

Basal Area of Trees

Description

Two functions that provide calculations of basal area in m^2 from a dbh vector. ba computes the basal area and returns a vector of the same length as the input vector. basum computes the sum of the basal areas for all values in a vector and returns a single value.

Usage

ba(dbh)
basum(dbh,mindbh=10)

Arguments

dbh DBH in mm of tree
mindbh minimum dbh for selection of value to be included in computation

Details

The input is either a single number or a vector of numbers. Valid values are DBH in mm that are greater than or equal to the minimum dbh. If basal area cannot be computed, the value of 0 is returned.

Value

ba returns a vector of the same length as the input DBH vector, basal area in m^2 basum returns a single value (numeric), sum of the basal area in m^2

Author(s)

Rick Condit and Pamela Hall

See Also

CTFS.basalarea

Examples

## Not run: 
ba.out <- ba(tst.bci90.full$dbh)
basum.out <- basum(tst.bci90.full$dbh)

ba100.out <- ba(tst.bci90.full[tst.bci90.full$dbh >= 100,]$dbh)
basum.out <- basum(tst.bci90.full$dbh, mindbh=100)
## End(Not run)

[Package CTFS version 1.00 Index]