⇤ ← Revision 1 as of 2023-03-19 23:29:16
Size: 714
Comment:
|
← Revision 2 as of 2023-06-15 13:59:36 ⇥
Size: 732
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
{{{ install.packages("tidycensus") }}} |
[[R/InstallingPackages|Install]] the `tidycensus` package. |
TidyCensus
Contents
Installation
Install the tidycensus package.
Usage
Census
get_decennial
ACS
get_acs
Microdata Samples
For PUMA data samples, use the get_pums function.
Examples of the API:
get_pums(variables = "AGEP", state = "VT") get_pums(variables = "AGEP", state = "multiple", puma = c("UT" = 35008, "NV" = 00403)) get_pums(variables = c("AGEP", "ANC1P"), state = "VT", recode = TRUE) get_pums(variables = "AGEP", state = "VT", survey = "acs1", rep_weights = "person")