tests/testthat/test-ls_periodogram.R

context("ls_perio")

test_that("ls_perio periodogram works", {
  data(dams_sample)

  per <- dams_sample[,
                     ls_periodogram(activity, sampling_rate = 1/60),
                     by = id]
 # ggetho::ggperio(per, aes(y = power - signif_threshold, colour=period_group)) + stat_pop_etho()


})

Try the zeitgebr package in your browser

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

zeitgebr documentation built on April 25, 2020, 5:07 p.m.