Census geo API helper functions
census_geo_api_names(
year = c("2020", "2010", "2000"),
age = FALSE,
sex = FALSE
)census_geo_api_url(year = c("2020", "2010", "2000"))
census_geo_api_names()A named list of character vectors whose values correspond to columns
of a Census API table and whose names represent the new columns they are
used to calculate in census_geo_api().
census_geo_api_url()A character string containing the base of the URL to a Census API table.
A character object specifying the year of U.S. Census data to be downloaded.
Use "2010", or "2020". Default is "2020".
Warning: 2020 U.S. Census data is downloaded only when age and
sex are both FALSE.
A TRUE/FALSE object indicating whether to condition on
age or not. If FALSE (default), function will return Pr(Geolocation | Race).
If TRUE, function will return Pr(Geolocation, Age | Race).
If sex is also TRUE, function will return Pr(Geolocation, Age, Sex | Race).
A TRUE/FALSE object indicating whether to condition on
sex or not. If FALSE (default), function will return Pr(Geolocation | Race).
If TRUE, function will return Pr(Geolocation, Sex | Race).
If age is also TRUE, function will return Pr(Geolocation, Age, Sex | Race).