tests/testthat/test-urban_owner.R

context("test-urban_owner")

test_that("rows and columns match old openintro data", {
  expect_equal(nrow(urban_owner), 52)
  expect_equal(ncol(urban_owner), 28)
})

test_that("column names are lower case", {
  expect_identical(names(urban_owner), tolower(names(urban_owner)))
})

Try the usdata package in your browser

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

usdata documentation built on June 22, 2021, 1:06 a.m.