library(sf)
library(usethis)
nyc_sf <- st_read("data-raw/nyc.shp",
quiet = TRUE,
stringsAsFactors = FALSE)
nyc_sf <- lwgeom::st_make_valid(nyc_sf)
nyc_sf[, c("bor_subb", "name")]<- list(NULL)
usethis::use_data(nyc_sf, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.