truncate_input: Truncate climate and tree data to common interval

Description Usage Arguments Value

View source: R/truncate_input.R

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

1
2
3
4
5
6
7
8
truncate_input(
  chrono,
  climate,
  timespan = NULL,
  minmonth,
  dynamic,
  silent = FALSE
)

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

moving

moving or not? (logical)

Value

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


cszang/treeclim documentation built on Feb. 18, 2022, 4:54 a.m.