tests/testthat/test-imd_northern_ireland_soa.R

test_that("correct number of rows", {
  expect_equal(nrow(imd_northern_ireland_soa), 890)
})

test_that("NI codes", {
  expect_equal(unique(substr(imd_northern_ireland_soa$soa_code, 1, 1)), "9")
})

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.