Nothing
library(testthat)
library(tsbox)
test_that("ts_trend does retransform (#193)", {
ans <- ts_trend(AirPassengers)
expect_s3_class(ans, "ts")
})
test_that("regular zoo and xts can be processed", {
library(zoo)
z <- as.zoo(USAccDeaths)
expect_s3_class(ts_tbl(z), "tbl")
expect_s3_class(ts_tbl(xts::as.xts(z)), "tbl")
})
test_that("ensure time is always ordered (#202)", {
unorderd <- ts_tbl(ts(1:3, start = 2000))[c(2, 3, 1), ]
expect_true(all(diff(ts_tbl(unorderd)$time) > 0))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.