usdata (version 0.1.0)

county: United States Counties

Description

Data for 3142 counties in the United States. See the county_complete data set for additional variables.

Usage

county

Arguments

Format

A data frame with 3142 observations on the following 14 variables.

name

County names.

state

State names.

pop2000

Population in 2000.

pop2010

Population in 2010.

pop2017

Population in 2017.

pop_change

Population change from 2010 to 2017.

poverty

Percent of population in poverty in 2017.

homeownership

Home ownership rate, 2006-2010.

multi_unit

Percent of housing units in multi-unit structures, 2006-2010.

unemployment_rate

Unemployment rate in 2017.

metro

Whether the county contains a metropolitan area.

median_edu

Median education level (2013-2017).

per_capita_income

Per capita (per person) income (2013-2017).

median_hh_income

Median household income.

smoking_ban

Describes whether the type of county-level smoking ban in place in 2010, taking one of the values "none", "partial", or "comprehensive".

See Also

county_complete

Examples

Run this code
# NOT RUN {
library(ggplot2)

ggplot(county, aes(x = median_edu, y = median_hh_income)) +
  geom_boxplot()

# }

Run the code above in your browser using DataLab