attr_names.shapefile: get attributes from a shapefile

View source: R/attribute-utils.R

attr_names.shapefileR Documentation

get attributes from a shapefile

Description

extract the attribute names from a shapefile file collection.

Usage

## 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 April 28, 2024, 3:31 a.m.