clean.demography: Keep or clean rows outputed by mortality, growth, or...

Description Usage Arguments Details Value Examples

Description

This takes a CTFS demography table, output by functions mortality, growth, or recruitment, and removes rows where N == 0, or key data are NA.

Usage

1
2
clean.demography(demogdata, type = "mort", Ncol = NULL, Scol = NULL,
  timecol = NULL, ratecol = NULL, excludespp = NULL)

Arguments

type

"mort" or "abund" to refer to columns by name or number.

Details

The rownames are assumed to refer to species names, and some codes can be excluded using the argument excludespp. The four columns can be submitted by name or number using default column headers, or by setting type to 'mort'or 'abund'.

Value

A logical vector indicating with TRUE which rows to keep, not the cleaned table itself.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
rows.include = clean.demography(demogtable,
  type = 'growth',
  Ncol = 'N',
  ratecol = 'ratecol')

result = demogtable[rows.include, ]

## End(Not run)

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