Learn R Programming

treeclim (version 2.0.6.0)

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)

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)

Value

a list of matrices

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.