Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

censusapi (version 0.3.0)

listCensusMetadata: Get variable or geography metadata for a given API as a data frame

Description

Get variable or geography metadata for a given API as a data frame

Usage

listCensusMetadata(name, vintage = NULL, type = "variables")

Arguments

name

API name - e.g. acs5. See list at https://api.census.gov/data.html

vintage

Vintage of dataset, e.g. 2014 - not required for timeseries APIs

type

Type of metadata to return, either "variables" or "v" to return variables or "geographies" or "g" to return geographies. Default is variables.

Examples

Run this code
# 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