tests/testthat/test_factor.R

context("factor")

test_that("combine", {
  x = factor(c("a", "b"))
  y = factor(c("b", "c"))
  expect_equal(cFactor(x,y), factor(c("a", "b", "b", "c")))
})
berndbischl/BBmisc documentation built on Jan. 6, 2023, 12:32 p.m.