tests/testthat/test-filter.R

test_that('geo_filter works', {
  nr <- geo_filter(rockland, nrcsd)

  expect_equal(nrow(nr), 722)
})


test_that('geo_trim works', {
  nr <- geo_filter(rockland, nrcsd)
  nr <- geo_trim(nr, nrcsd)
  expect_equal(nrow(nr), 689)
})

Try the geomander package in your browser

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

geomander documentation built on April 16, 2023, 5:18 p.m.