Learn R Programming

treeclim (version 2.0.7.1)

truncate_input: Truncate climate and tree data to common interval

Description

Truncate climate and tree data either to common shared interval (default) or to specified range of years. Depending on minmonth, the climate data will need to start one year earlier than the tree data, if data from the previous year should be used.

Usage

truncate_input(
  chrono,
  climate,
  timespan = NULL,
  minmonth,
  dynamic,
  silent = FALSE
)

Value

a list of truncated data.frames for climate and tree data

Arguments

chrono

a tree-ring chronology

climate

the climate data as returned by as_tcclimate

timespan

the timespan for truncating as vector with min and max year

minmonth

the earliest month used for the calibration, as returned by check_months

dynamic

type of dynamic behaviour