View source: R/clean_census_data.R
clean_census_data | R Documentation |
Cleaning Census data – removing all but relevant variable and geometries
clean_census_data(census_table, variable_n)
census_table |
the table of census values extracted with API key example – pulling in census data: it should look something like this: mpls_income2019 <- get_acs(geography = "tract", year = 2019, variables = c(med_earn = "S2001_C01_002E"), state = "MN", county = "Hennepin", survey = "acs5", output = "wide", geometry = TRUE) |
variable_n |
the variable of interest, should be a character string |
a clean table with only the census variable and its geometries Note: can be used int eh city_census_data function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.