R/tsbox-defunct.R

Defines functions ts_end ts_start

Documented in ts_end ts_start

#' Start and end of time series
#'
#' @inherit ts_default
#' @export
#' @name tsbox-defunct
ts_start <- function(x) {
  .Defunct("ts_summary")
  x.dts <- ts_dts(x)
  range(x.dts[[dts_cname(x.dts)$time]])[1]
}


#' @export
#' @name tsbox-defunct
ts_end <- function(x) {
  .Deprecated("ts_summary")
  x.dts <- ts_dts(x)
  range(x.dts[[dts_cname(x.dts)$time]])[2]
}

Try the tsbox package in your browser

Any scripts or data that you put into this service are public.

tsbox documentation built on May 31, 2023, 6:41 p.m.