tests/testthat/test-model-matrix.R

test_that("model_matrix() returns a tibble", {
  out <- model_matrix(iris, Sepal.Length ~ Species)
  expect_s3_class(out, "tbl_df")
})

Try the modelr package in your browser

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

modelr documentation built on March 31, 2023, 5:20 p.m.