Learn R Programming

treeclim (version 1.0.13)

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, moving)

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