| stretcher {tsibble} | R Documentation |
Split the input to a list according to the stretching window size.
stretcher(.x, .step = 1, .init = 1, .bind = FALSE) pstretcher(..., .step = 1, .init = 1, .bind = FALSE)
.x |
An objects to be split. |
.step |
A positive integer for incremental step. |
.init |
A positive integer for an initial window size. |
.bind |
If |
... |
Multiple objects to be split in parallel. |
x <- 1:5 y <- 6:10 z <- 11:15 lst <- list(x = x, y = y, z = z) df <- as.data.frame(lst) stretcher(x, .step = 2) stretcher(lst, .step = 2) stretcher(df, .step = 2) pstretcher(df, df, .step = 2)