R/new_tsi.R

Defines functions new_tsi

#' Constructor for a tsi object
#'
#' @param df A data frame containing times since intervention
#'
#' @return An object of class `tsi`
#' @noRd

new_tsi <- function(df) {
  structure(
    list(data = df),
    class = "tsi"
  )
}

Try the staggR package in your browser

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

staggR documentation built on April 2, 2026, 5:08 p.m.