biomass.change: Finds biomass in two censuses and change between them.

Description Usage Arguments Details Value Examples

Description

Finds biomass in two censuses and change between them. The submitted dataframes are exactly the standard CTFS R Analytical tables, with a column for biomass (agb) already calculated. Each dataframe has a record for every tree in a single census (or a stem table can be passed, with one record for each stem). Biomass for all living trees is summed over whatever grouping variables are submitted (split1 and split2) in both censuses, along with the annual rate of change in each category.

Usage

1
2
biomass.change(census1, census2, alivecode = c("A"), mindbh = NULL,
  split1 = NULL, split2 = NULL)

Arguments

census1

The R Analytical Table for a single census, either tree or stem.

census2

The matching R Analytical Table for a later census.

alivecode

character, codes of the variable status that indicate the tree is alive. The default 'A' is the standard CTFS designation for living trees or stems

mindbh

The minimum diameter above which the counts are done. Trees smaller than mindbh are excluded. If NULL, all living trees are included.

split1

a vector of categories, one per individual

split2

another vector of categories, one per individual

dbhunit

'cm' or 'mm', only used for basal area

Details

Based closely on the function pop.change() in abundance.r, and differs only in taking sum of agb instead of counting individuals.

If no split variables are submitted (split1 = split2 = NULL), each component of the returned list is a single number, for the entire plot. If split1 is submitted but not split2, each component is a vector, one value for each category of split. If both splits are submitted, each component of the list is a matrix.

Value

A list with 6 components:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 

CTFSplot("bci", "full", census = c(3, 7))

deltaAGB = biomass.change(bciex::bci12t3mini, bciex::bci12t7mini)

deltaAGB.spp = biomass.change(
  bciex::bci12t3mini, bciex::bci12t7mini, split1 = bciex::bci12t3mini$sp
)

deltaAGB.table = assemble.demography(deltaAGB.spp, type = "a") 

rate = deltaAGB.table$little.r

hist(rate, breaks = 50)

summary(rate[is.finite(rate)])

subset(deltaAGB.table, is.infinite(rate))

## End(Not run)

forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.