correct_dbh: DBH correction in ForestGEO data

Description Usage Arguments Value

View source: R/correct_dbh.R

Description

DBH correction in ForestGEO data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
correct_dbh(
  dbh,
  year,
  Gexp = 5,
  codes = NA,
  acc_decr = -5,
  acc_incr = 35,
  relat_change = FALSE,
  step_corr = TRUE,
  dcor_min = 10
)

Arguments

dbh

a numeric vector containing the dbh measurements of a tree or stem

year

a numeric vector containing the census years of a tree or stem

Gexp

expected growth rate

codes

optional, a character vector containing the field codes of a tree or stem

acc_decr

numeric: acceptable decrease between two censuses, as a proportion if relat_change is TRUE or in mm if relat_change is false

acc_incr

numeric: acceptable annual increase, as a proportion (per year) if relat_change is TRUEor in mm/year if relat_change is false

relat_change

logical: should the decrease and increse values be relative (proportion of total dbh) or absolute values (in mm)?

step_corr

logical: should step dbh changes be corrected?

dcor_min

numeric: minimum dbh (in mm) of corrected stems

Value

A numeric vector with corrected dbhs.


cpiponiot/cdynfgeo documentation built on July 7, 2020, 3:27 p.m.