consolidate_data: ForestGEO-like data consolidation

Description Usage Arguments Value

View source: R/consolidate_data.R

Description

ForestGEO-like data consolidation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
consolidate_data(
  df,
  taper_correction = TRUE,
  stem_matching = TRUE,
  add_missing = TRUE,
  correct_diam = TRUE,
  step_corr = TRUE,
  dcor_min = 100,
  acc_decr = -5,
  acc_incr = 50,
  relat_change = FALSE,
  species_path = getwd(),
  print_time = FALSE
)

Arguments

df

A data.table obtained with the prepare_data() function.

taper_correction

Logical value: should the taper correction from Cushman et al (2014) be applied? Default is TRUE.

stem_matching

Logical value: should the stem matching script be applied? Default is TRUE.

add_missing

Logical value: should missing stem measurements be interpolated? Default is TRUE.

correct_diam

Logical value: should dbh errors (detected when dbh changes are outside the acceptable range) be corrected? Default is TRUE.

step_corr

Logical value: should step dbh changes be corrected? Default is TRUE.

acc_decr

numeric value: acceptable decrease between two censuses, as a proportion if relat_change is TRUE or in mm if relat_change is false. Default is -5 mm/yr

acc_incr

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

relat_change

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

species_path

character string specifying the the directory in which the species tables are. Default is the current directory.

print_time

Logical value: should the running time be printed? Default is FALSE.

Value

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


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