ts_symbolic: Symbolic representation

View source: R/ts.R

ts_symbolicR Documentation

Symbolic representation

Description

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.

Usage

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

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()


FredHasselman/casnet documentation built on April 20, 2024, 3:05 p.m.