View source: R/modeltime-recursive.R
panel_tail | R Documentation |
Filter the last N rows (Tail) for multiple time series
panel_tail(data, id, n)
data |
A data frame |
id |
An "id" feature indicating which column differentiates the time series panels |
n |
The number of rows to filter |
A data frame
recursive()
- used to generate recursive autoregressive models
library(timetk)
# Get the last 6 observations from each group
m4_monthly %>%
panel_tail(id = id, n = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.