tests/testthat/test-col_vars.R

test_that("col_vars works", {
  obj <- sim_mat(10, 50, perc_col_na = 1)$input
  expect_equal(apply(obj, 2, var, na.rm = TRUE), col_vars(obj))
})

Try the slideimp package in your browser

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

slideimp documentation built on April 17, 2026, 1:07 a.m.