tests/testthat/test-non_heuristic.R

library(testthat)
library(tsbox)


test_that("regular non standard series work with NA", {
  x0 <- EuStockMarkets
  x0[5:10, ] <- NA
  expect_equal(ts_ts(ts_tbl(x0)), x0)

  x0[c(100, 200), c(2, 4)] <- NA
  expect_equal(ts_ts(ts_tbl(x0)), x0)
})
christophsax/tsbox documentation built on Sept. 22, 2023, 2:35 p.m.