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)

Arguments

y

Numeric vector or matrix to be discretised. Will return attributes with labels for each column in the matrix.

keepNA

If TRUE, any NA 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))

Value

A symbolic version of y