tests/testthat/test_diag_of.R

test_that("str_length of factor is length of level", {
  expect_equal(.diag_of(matrix(c(1,2,3,3,2,1,2,3,1), ncol = 3, nrow = 3)), c(1,2,1))
})

Try the BLModel package in your browser

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

BLModel documentation built on May 2, 2019, 5:11 a.m.