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 data frame 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)

openintro documentation built on April 19, 2021, 5:06 p.m.