ts_windower | R Documentation |
Get sliding window indices
ts_windower(
y,
win = length(y),
step = NA,
overlap = NA,
adjustY = NA,
alignment = c("r", "c", "l")[1],
silent = TRUE
)
y |
A time series or numeric vector |
win |
Size of the window to slide across |
step |
Size of steps between windows. Can be larger than |
overlap |
A value between |
adjustY |
If not |
alignment |
Whether to right ( |
silent |
Silent mode. |
If adjustY
is a list object with fields that represent arguments of ts_trimfill, then the (adjusted) vector y
is returned with an attribute "windower"
. This is a list object with fields that contain the indices for each window that fits on y
, given win
, step
or overlap
and the settings of adjustY
. If adjustY = NA
, only the list object is returned.
An attribute time
is returned with the time index based on the alignment
arguments.
Other Time series operations:
ts_center()
,
ts_changeindex()
,
ts_checkfix()
,
ts_detrend()
,
ts_diff()
,
ts_discrete()
,
ts_duration()
,
ts_embed()
,
ts_integrate()
,
ts_levels()
,
ts_peaks()
,
ts_permtest_block()
,
ts_permtest_transmat()
,
ts_rasterize()
,
ts_sd()
,
ts_slice()
,
ts_slopes()
,
ts_standardise()
,
ts_sumorder()
,
ts_symbolic()
,
ts_trimfill()
Other Tools for windowed analyses:
plotMRN_win()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.