attr_names.shapefile: get attributes from a shapefile

Description Usage Arguments Details Value

View source: R/attribute-utils.R

Description

extract the attribute names from a shapefile file collection.

Usage

1
2
## S3 method for class 'shapefile'
attr_names(x)

Arguments

filename

a character vector of shapefile file names

Details

Vector of shapefile file names (the filename arguments) must include a *.dbf file. This function only reads the shapefile's dbf, so it skips reading in the geometry.

Value

a character vector of attribute names for use in metadata rendering


USGS-R/meddle documentation built on Nov. 21, 2020, 7:44 p.m.