tests/testthat/setup-data.R

context("setup-data.R")

USAccDeaths_tbl <- as_tsibble(USAccDeaths)
UKLungDeaths <- as_tsibble(cbind(mdeaths, fdeaths), pivot_longer = FALSE)

fc_mean <- function(x){
  if(inherits(x, "distribution")) mean(x) else x
}
tidyverts/fable documentation built on Nov. 30, 2024, 10:49 p.m.