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)
})

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.