Get variable or geography metadata for a given API as a data frame
listCensusMetadata(name, vintage = NULL, type = "variables")
API name - e.g. acs5. See list at https://api.census.gov/data.html
Vintage of dataset, e.g. 2014 - not required for timeseries APIs
Type of metadata to return, either "variables" or "v" to return variables or "geographies" or "g" to return geographies. Default is variables.
# NOT RUN {
varsbds<- listCensusMetadata(name = "timeseries/bds/firms", type = "v")
head(varsbds)
geosbds <- listCensusMetadata(name = "timeseries/bds/firms", type = "g")
head(geosbds)
geosacs <- listCensusMetadata(name = "acs5", vintage = 2015, type = "g")
head(geosacs)
# }
Run the code above in your browser using DataLab