get_decennial_place: Decennial Estimates by Place

View source: R/get-decennial-recs.R

get_decennial_placeR Documentation

Decennial Estimates by Place

Description

Generate decennial estimates for multiple tables by place(s).

Usage

get_decennial_place(table_codes, year, fips = NULL, state = "WA")

Arguments

table_codes

A character string or vector of Census table codes.

year

Numeric value. A decennial year equal or greater than 2010

fips

Character value. Single code or vector of place fips codes.

state

A character string state abbreviation

Value

a tibble of decennial estimates by place(s) for selected table codes. Does not include variable names.

Author(s)

Christy Lam

Examples

Sys.getenv("CENSUS_API_KEY")
get_decennial_place(table_codes = 'PCT013', year = 2010)

get_decennial_place(table_codes = 'PCT013',
                    year = 2010,
                    fips = c("5363000", "5308850"))

get_decennial_place(table_codes = c('PCT013', 'PCT022'),
                    year = 2010,
                    fips = c("5363000", "5308850"))

cyyllam/mycensus documentation built on July 7, 2022, 8:40 p.m.