tests/testthat/test-tab2mat.R

test_that("tab2mat converts row vector to matrix", {
  x <- matrix(1:9, 1)
  res <- tab2mat(x)
  expect_equal(res, matrix(1:9, 3, byrow = TRUE))
})

Try the brmsmargins package in your browser

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

brmsmargins documentation built on May 20, 2022, 1:07 a.m.