Simple features in R (1)

Package sf: to read, manipulate and write simple features in R

# install.packages("sf")
library(sf)
filepath <- system.file("shape/nc.shp", package = "sf")

Reading a geospatial data file:

# nc <- st_read(filepath, quiet = TRUE, as_tibble = TRUE)
nc <- read_sf(filepath)

Read the documentation of this dataset with ?nc and on https://jakubnowosad.com/spData/reference/nc.sids.html.