tests/testthat/test-relabel.R

test_that("Relabeling to always provide the canonical labels works", {
  block <- factor(c(1,4,4,3,2)) 
  expect_equal(relabel(block = block,n_blocks = 4), factor(c(1,2,2,3,4)))
})

Try the bigergm package in your browser

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

bigergm documentation built on April 3, 2025, 7:57 p.m.