state.historical: State Historical Look Ups

Description Usage Format Source Examples

Description

Several simple vectors to use like state.abb or state.name from the base datasets Includes some for the Civil War, 13 colonies, union admission, etc

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Format

An object of class "vector"

Source

Wikipedia, mostly

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- c("New York", "Virginia", "West Virginia", "Colorado")
state.confederacy[match(x, state.name)]
# state in joined the Confederacy?
state.union[match(x, state.name)]
# state remained loyal to Union?
state.civilwar[match(x, state.name)]
# state's side in the Civil War (Union, Confederacy, or Territory)
state.admission[match(x, state.name)]
# year of state's admission to the US
state.13.colony[match(x, state.name)]
# an original 13 colony state?
state.slavery.1860[match(x, state.name)]
# did the state permit slavery in 1860?

jamesfeigenbaum/jjfPkg documentation built on June 17, 2018, 9:52 p.m.