data/nypoly.R

if (requireNamespace("sf", quietly = TRUE) &
    requireNamespace("sp", quietly = TRUE)) {
  nypoly <- sf::as_Spatial(get0("smerc_nysf_internal",
                                envir = asNamespace("smerc"))["geometry"])
} else {
  message("The sf and sp packages must be installed to produce this data. Returning a NULL object.")
  nypoly <- NULL
}

Try the smerc package in your browser

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

smerc documentation built on Oct. 10, 2023, 5:07 p.m.