Quickly extract the field names in a shapefile.
shapefile_field_names(x, inherits = NULL)
x |
|
---|---|
inherits |
|
character
vector of field names.
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"