Learn R Programming

fivethirtyeight (version 0.5.0)

state_info: Information on each state

Description

State name, abbreviation, US Census designated division & region.

Usage

state_info

Arguments

Format

A data frame with 51 rows representing airlines and 4 variables:

state

State name

state_abbrev

State abbreviation

division

US Census designated division. Values for division are nested within region

region

US Census designated region

Examples

Run this code
# NOT RUN {
library(dplyr)
# Number of states in each division
state_info %>%
  count(division)
# Number of states in each region
state_info %>%
  count(region)
# }

Run the code above in your browser using DataLab