Quickly extract the field names in a shapefile.
Examples
shapefile_field_names(system.file("shape/nc.shp", package = "sf"))
#> [1] "AREA" "PERIMETER" "CNTY_" "CNTY_ID" "NAME" "FIPS"
#> [7] "FIPSNO" "CRESS_ID" "BIR74" "SID74" "NWBIR74" "BIR79"
#> [13] "SID79" "NWBIR79"