= R tidycensus = '''tidycensus''' is a package for pulling [[UnitedStates/CensusBureau|Census]] data. <> ---- == Installation == [[R/InstallingPackages|Install]] the `tidycensus` package. {{{ install.packages('tidycensus') }}} ---- == Usage == === Census === `get_decennial` === ACS === `get_acs` ==== Microdata Samples ==== For [[UnitedStates/CensusBureau#Public_Use_Microdata_Areas|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") }}} ---- CategoryRicottone