tests/testthat/test_get_signif_code.R

context("test get_signif_code")

x <- tibble::tibble(p_val = list("test", NA, 0.025,
  0.009, Inf))
x$code <- get_signif_code(x$p_val)

test_that("test generated vector", {
  expect_is(x$code, "character")
  expect_equal(x$code, c("", "", "*", "**", " "))
})

Try the INDperform package in your browser

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

INDperform documentation built on Jan. 11, 2020, 9:08 a.m.