cens_parse_tables: Attempt to Parse Tables from a Census API

View source: R/parse_table.R

cens_parse_tablesR Documentation

Attempt to Parse Tables from a Census API

Description

Uses the same parsing code as that which generates tables_sf1 and tables_acs See https://www.census.gov/data/developers/data-sets.html for a list of APIs and corresponding years, or use censusapi::listCensusApis().

Usage

cens_parse_tables(api, year)

Arguments

api

A Census API programmatic name such as "acs/acs5".

year

The year for the data

Value

A list of cens_table objects, which are just lists with four elements:

  • concept, a human-readable name

  • tables, the constituent table codes

  • surveys, the supported surveys

  • dims, the parsed names of the dimensions of the tables

  • vars, a tibble with all of the parsed variable values

Examples

## Not run: 
cens_parse_tables("dec/pl", 2020)

## End(Not run)


easycensus documentation built on March 31, 2023, 10:57 p.m.