| adjust_ts_data_mv | R Documentation |
ts_data_mvRestore the multivariate time-series metadata after subsetting or data manipulation.
adjust_ts_data_mv(
data,
y,
x = NULL,
sw = 1,
variables = NULL,
lags = NULL,
representation = c("aligned", "windowed")
)
data |
Matrix or data.frame. |
y |
Character scalar. Target variable name. |
x |
Character vector. Auxiliary variable names. |
sw |
Integer. Temporal width of the representation. |
variables |
Character vector. Variables represented in the object. |
lags |
Named list of lag positions per variable. |
representation |
Character. Either |
This helper mirrors adjust_ts_data() from the univariate workflow. It
preserves whether the multivariate object is aligned (sw = 1) or lagged
(sw > 1).
A ts_data_mv object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.