View source: R/attribute-utils.R
attr_names | R Documentation |
return just the header names (attributes) for delimited files or shapefiles
attr_names(x)
x |
the full path for the file(s) or an object |
the attributes as a character vector
# attribute names from a shapefile:
attr_names(system.file(package='meddle','extdata','example_shapefile'))
# attribute names from a Spatial object:
sf <- read_data(system.file(package='meddle','extdata','example_shapefile'))
attr_names(sf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.