Return a discrete representation of y
by transforming it into an unordered categorical variable which indicates whether a value went up, down, or remained the same relative to the previous value.
ts_symbolic(y, keepNA = TRUE, usePlateaus = FALSE, doPlot = FALSE)
Numeric vector or matrix to be discretised. Will return attributes with labels for each column in the matrix.
If TRUE
, any NA
values will first be removed and later re-inserted into the discretised time series. (default = TRUE
)
Give consecutive "same"
values after "peak"
or "trough"
a "peak"
or "trough"
label instrad of "same"
. (default = FALSE
)
Create a plot of the symbolized series. (default = FALSE)
)
A symbolic version of y
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_trimfill()
,
ts_windower()