tests/testthat/test-AutoA.R

context("test-AutoA")

test_that("Whether MaxLag mataches with the maximun leg time considered in the autocorrelogram", {
  Time_series=five_minute_time_series
  MaxLag=30
  df<-AutoA(Time_series,MaxLag)$Values
  expect_equal(df[length(df[,1]),1],MaxLag)})

Try the IETD package in your browser

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

IETD documentation built on March 13, 2020, 1:53 a.m.