tests/testthat/test-assign_summary_type.R

skip_on_cran()

test_that("auto-assign continuous: mtcars$hp", {
  expect_equal(
    assign_summary_type(
      data = mtcars, variable = "hp",
      summary_type = NULL, value = NULL
    ),
    "continuous"
  )
})

Try the gtsummary package in your browser

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

gtsummary documentation built on July 26, 2023, 5:27 p.m.