shapefile_field_names: Shapefile field names

View source: R/utils_spatial_misc.R

shapefile_field_namesR Documentation

Shapefile field names

Description

Quickly extract the field names in a shapefile.

Usage

shapefile_field_names(x, inherits = NULL)

Arguments

x

character path.

inherits

character class to return only column names that contain a certain type of data. Defaults to NULL such that all column names are returned.

Value

character vector of field names.

Examples

shapefile_field_names(system.file("shape/nc.shp", package = "sf"))

NCC-CNC/wheretowork documentation built on Feb. 27, 2025, 6:11 p.m.