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")))
})

Try the BBmisc package in your browser

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.