tests/testthat/test-imd_england_lsoa.R

test_that("correct number of rows", {
  expect_equal(nrow(imd_england_lsoa), 32844)
})

test_that("English LSOAs", {
  expect_equal(unique(substr(imd_england_lsoa$lsoa_code, 1, 1)), "E")
})

Try the IMD package in your browser

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

IMD documentation built on Sept. 30, 2022, 5:06 p.m.