tests/testthat/test-describe.R

test_that("describe returns one row per column", {
  out <- describe(iris)

  expect_s3_class(out, "basetable")
  expect_equal(nrow(out), ncol(iris))
  expect_true(all(c("column", "class", "distinct") %in% names(out)))
})

Try the basetable package in your browser

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

basetable documentation built on Sept. 18, 2026, 9:13 a.m.