make_pmat: Make list of parameter matrices from climate input data

Description Usage Arguments Details Value

View source: R/make_pmat.R

Description

Reformat climate input data into separate lists

Usage

1
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)

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.

Value

a list of matrices


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