cle_sac: Cleveland and Sacramento

Description Usage Format Examples

Description

Data on a sample of 500 people from the Cleveland, OH and Sacramento, CA metro areas.

Usage

1

Format

A tibble with 500 observations representing people on the following 8 variables.

year

Year the data was collected.

state

State where person resides.

city

City.

age

Age of the person.

sex

Gender.

race

Ethnicity.

marital_status

Marital status.

personal_income

Personal income.

Examples

1
2
3
4
5
library(ggplot2)

ggplot(cle_sac, aes(x = personal_income)) +
  geom_histogram(binwidth = 20000) +
  facet_wrap(~city)

OpenIntroStat/openintro-r-package documentation built on Jan. 22, 2020, 3:23 p.m.