ba {CTFS} | R Documentation |
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.
ba(dbh) basum(dbh,mindbh=10)
dbh |
DBH in mm of tree |
mindbh |
minimum dbh for selection of value to be included in computation |
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.
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
Rick Condit and Pamela Hall
## 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)