ts_trimfill | R Documentation |
Trim the largest vector by cutting it, or filling it with NA
.
Fill the shortest vector with padding.
ts_trimfill(
x,
y,
action = c("fill", "trim.cut", "trim.NA")[1],
type = c("end", "center", "front")[1],
padding = 0,
silent = TRUE
)
x |
A numeric vector |
y |
A numeric vector |
action |
Use |
type |
Should trimming or filling take place at the |
padding |
A value to use for padding (default = |
silent |
Run silent-ish |
A list with two vectors of equal length.
Fred Hasselman
il_mi
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_windower()
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_windower()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.