R/dts.R
is_dts.Rd
This function returns TRUE for discrete time series (objects of class dts) and FALSE for other objects.
TRUE
dts
FALSE
is_dts(x)
an R object.
TRUE for discrete time series.
set.seed(0) pre_dts <- sample(c("A", "B"), 20, replace = TRUE) x_dts <- dts(pre_dts) is_dts(x_dts) #> [1] TRUE is_dts(pre_dts) #> [1] FALSE