data.prep: CTFS-formated data preparation

Description Usage Arguments Value Author(s)

View source: R/AGBfluxes_functions_stem.R View source: R/AGBfluxes_functions.R

Description

Main routine to format and correct CTFS-formated data

Usage

1
2
3
data.prep(site, stem, taper.correction, fill.missing, palm, strangler,
  maxrel = 20, draw.graph, output.errors, DATA_path,
  exclude.interval = NULL)

Arguments

site

provide the full name of your site (in lower case) i.e. 'barro colorado island'

stem

TRUE or FALSE, are you using the stem data (stem=TRUE) or tree data (i.e. called 'full')?

taper.correction

TRUE or FALSE, are you willing to apply Cushman et al (2014) taper correction?

fill.missing

TRUE or FALSE, are you willing to extrapolate missing DBH from surrounding DBH?

palm

TRUE or FALSE, if TRUE, biomass of palm trees is computed through a specific allometric model (Goodman et al. 2013)

strangler

TRUE or FALSE, if TRUE, strangler figs tree are flagged (upon a list to published soon)

maxrel

a numeric value setting the threshold over which relative productivity is assumed to be too high (usually set at 20 percents)

draw.graph

TRUE or FALSE, if TRUE, draw graph for trees with 'erroneous' DBH measures/productivity

output.errors

TRUE or FALSE, if TRUE, creat a CSV file with all trees with erroneous DBH measures/productivity

DATA_path

allows to provide a different path where the data are located

exclude.interval

NULL by default. If needed a vector (e.g. c(1,2)) indicating which census interval(s) must be discarded from computation due, for instance, to a change in protocol of measurment

Value

a data.table (data.frame) with all relevant variables.

Author(s)

Ervan Rutishauser (ervan.rutishauser@infoflora.ch)


ervanSTRI/AGBflux_pack documentation built on Oct. 15, 2021, 6:44 p.m.