tests/testthat/test-to_integer.R

test_that("to_integer works", {
  expect_identical(fwildclusterboot:::to_integer(c("a", "b", "c")), 1:3)
  expect_identical(fwildclusterboot:::to_integer(1:3), 1:3)
  expect_identical(fwildclusterboot:::to_integer(2:4), 1:3)
  expect_identical(fwildclusterboot:::to_integer(factor(c(1, 2, 3))), 1:3)
})

Try the fwildclusterboot package in your browser

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

fwildclusterboot documentation built on March 7, 2023, 5:33 p.m.