tests/testthat/test-misc-r.R

test_that("Construct coefficient names", {
  name_lag <- concatenate_colnames(c("x", "y"), 1:2, FALSE)
  expect_equal(name_lag, c("x_1", "y_1", "x_2", "y_2"))
})

Try the bvhar package in your browser

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

bvhar documentation built on April 4, 2025, 5:22 a.m.