R/dplyr-dable.R

Defines functions dplyr_reconstruct.dcmp_ts dplyr_col_modify.dcmp_ts dplyr_row_slice.dcmp_ts

#' @export
dplyr_row_slice.dcmp_ts <- function(data, i, ..., preserve = FALSE) {
  res <- NextMethod()
  build_dable(res, response = response_vars(data), method = data%@%"method", 
              seasons = data%@%"seasons", aliases = data%@%"aliases")
}

#' @export
dplyr_col_modify.dcmp_ts <- function(data, cols) {
  res <- NextMethod()
  build_dable(res, response = response_vars(data), method = data%@%"method", 
              seasons = data%@%"seasons", aliases = data%@%"aliases")
}

#' @export
dplyr_reconstruct.dcmp_ts <- function(data, template) {
  res <- NextMethod()
  build_dable(res, response = response_vars(template), method = template%@%"method", 
              seasons = template%@%"seasons", aliases = template%@%"aliases")
}

Try the fabletools package in your browser

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

fabletools documentation built on Oct. 12, 2023, 1:07 a.m.