getAttributes: Read contents of data packge file and construct a data frame...

Description Usage Arguments Value Examples

View source: R/getAttributes.R

Description

getAttributes reads the data file from a package and loads a list of fields and their attributes into a data frame.

Usage

1
getAttributes(HoldingID, dataFormat, metadataFormat)

Arguments

HoldingID

is a 6-7 digit number corresponding to the holding ID of the data package zip file.

dataFormat

is a character value indicating the format of the data set(s) within the data package. Currently allowable options are: * "csv" for comma seperated value text files * "gdb" for file geodatabases

metadataFormat

is a character value indicating the format of the metadata file within the data package. Currently allowable options are: * "eml" for eml-compliant xml metadata files * "fgdc" for FGDC-compliant xml metadata files

Value

one data frame to the global enviroment.

Examples

1
attributeTable<-getAttributes(2266200,dataFormat="gdb",metadataFormat="fgdc")

joe-devivo/NPSDataStoreTools documentation built on Feb. 5, 2020, 11:05 a.m.