R/dts.R
dts_data.Rd
This function returns a copy of the discrete time series used to build the dts object (see dts()).
dts
dts()
dts_data(x)
a dts object.
a vector representing the time series, whose values are taken from the state space of x (see states()).
x
states()
set.seed(0) raw_dts <- sample(c("A", "B", "C"), 50, replace = TRUE) odts <- dts(raw_dts) back_to_raw <- dts_data(odts) ## should be TRUE identical(raw_dts, back_to_raw) #> [1] TRUE