Learn R Programming

⚠️There's a newer version (1.7.1) of this package.Take me there.

tidycensus

Load US Census boundary and attribute data as 'tidyverse' and 'sf'-ready data frames

tidycensus is an R package designed to help R users work with US Census Bureau data within the tidyverse and sf ecosystems. For more information about the package, visit its website at https://walkerke.github.io/tidycensus.

Copy Link

Version

Install

install.packages('tidycensus')

Monthly Downloads

6,005

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kyle Walker

Last Published

January 31st, 2025

Functions in tidycensus (0.1.0)

moe_sum

Calculate the margin of error for a derived sum
tidycensus

Return tidy data frames from the US Census Bureau API
get_acs

Obtain data and feature geometry for the five-year American Community Survey
get_decennial

Obtain data and feature geometry for the decennial Census
census_api_key

Set the Census API key
fips_codes

Dataset with FIPS codes for US states and counties
moe_prop

Calculate the margin of error for a derived proportion
moe_ratio

Calculate the margin of error for a derived ratio
load_variables

Load variables from a decennial Census or American Community Survey dataset to search in R
moe_product

Calculate the margin of error for a derived product