state.historical: State Historical Look Ups

state.historicalR Documentation

State Historical Look Ups

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

data(state.confederacy)

data(state.union)

data(state.civilwar)

data(state.admission)

data(state.13.colony)

data(state.slavery.1860)

state.confederacy

state.union

state.civilwar

state.admission

state.13.colony

state.slavery.1860

Format

An object of class "vector"

An object of class logical of length 50.

An object of class logical of length 50.

An object of class character of length 50.

An object of class character of length 50.

An object of class logical of length 50.

An object of class logical of length 50.

Source

Wikipedia, mostly

Examples

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 March 31, 2022, 5:33 p.m.