clean_census_data: Cleaning Census data - removing all but relevant variable and...

View source: R/clean_census_data.R

clean_census_dataR Documentation

Cleaning Census data – removing all but relevant variable and geometries

Description

Cleaning Census data – removing all but relevant variable and geometries

Usage

clean_census_data(census_table, variable_n)

Arguments

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

Value

a clean table with only the census variable and its geometries Note: can be used int eh city_census_data function


fiiion/Package_FP documentation built on May 15, 2022, 12:07 a.m.