ba.indiv {CTFS} | R Documentation |
Computes the basal area (m^2) for each tree including multiple stems if there are any. If a tree has more than one stem, the other stems recorded in the multi-stem file are included in its basal area. Two datasets are used: one with the primary stem and one with all multiple stems for that cenus. The two datasets contain completely non-overlapping sets of DBH. Adding the two together produces the total basal area for each tagged tree.
ba.indiv(census1, mult1, alivecode=c("A"), mindbh = 10)
census1 |
name of census datafile for a single census, a dataframe |
mult1 |
name of multi-stem file from the same census as |
alivecode |
character, codes of the variable status
that indicate the tree is alive. The most general valid categories are: "A" and
"AB" and "AS". Default for ba.indiv is "A" |
mindbh |
minimum DBH to determine which trees will be included in computation |
See CTFS.basalarea
for details on the computation methods
of basal area and associated functions.
A tree is included for the computation based on its value for
status
and dbh
for a single census.
Returns a vector of basal areas (m^2) of the same length as
census1
Rick Condit, Suzanne Lao, Pamela Hall
## Not run: 1. Default use of ba.indiv ba.indiv.out <- ba.indiv(tst.bci90.full,tst.bci90.mult) 2. Basal area for trees >= 100 mm only ba.indiv.out <- ba.indiv(tst.bci90.full,tst.bci90.mult,mindbh=100) ## End(Not run)