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.
Arguments
- y
Numeric vector or matrix to be discretised. Will return attributes with labels for each column in the matrix.
- keepNA
If
TRUE
, anyNA
values will first be removed and later re-inserted into the discretised time series. (default =TRUE
)- usePlateaus
Give consecutive
"same"
values after"peak"
or"trough"
a"peak"
or"trough"
label instrad of"same"
. (default =FALSE
)- doPlot
Create a plot of the symbolized series. (default =
FALSE)
)
See also
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()