Learn R Programming

treeclim (version 2.0.7.1)

make_pmat: Make list of parameter matrices from climate input data

Description

Reformat climate input data into separate lists

Usage

make_pmat(x, pad = 0)

Value

a list of matrices

Arguments

x

climate data as returned from as_tcclimate

pad

how many previous years should be padded with NAs? This is useful when we want to use the full range of available data when all predictors derive from the current year (pad = 2, or current and previous, for pad = 1)

Details

Make separate lists for each parameter in the climate data input, and make them accessible by the parameter names. The single lists correspond to the scheme years in rows, observations from previous december to current december in columns.