A named list of arrays covering the same targets and differing only in how the record was
reduced: several calendar grains, several lookback spans, a block of features beside a
sequence. It is keyed by the label each representation is reported under, which is what
grain_ladder() fits across and what a candidate in a timesift() fit is named by.
Arguments
- x
A named list of built representations –
grain_matrix(),lookback_matrix()orfeature_matrix()results – or a single one.
Examples
t <- seq(as.POSIXct("2021-09-01", tz = "UTC"), by = "hour", length.out = 24 * 60)
d <- data.frame(plot = rep(c("a", "b"), each = length(t)), t = rep(t, 2),
temp = rnorm(2 * length(t)))
s <- grain_matrix(d, plot, t, temp, grain = c("day", "week", "month"))
s
names(s)