Since the Correlates of State Policy project now provides their data in an easy-to-use CSV file, this package is deprecated. To read the data into R, just use:

uri <- ""
csp <- read.csv(uri)

See their website for up-to-date information.

This package contains the Correlates of State Policy dataset version 1.11, which

… includes more than seven-hundred variables, with observations across the U.S. 50 > states and time (1900 – 2016). These variables represent policy outputs or > political, social, or economic factors that may influence policy differences > across the states. The codebook includes the variable name, a short description > of the variable, the variable time frame, a longer description of the variable, > and the variable source(s) and notes.

Suggested citation:

Jordan, Marty P. and Matt Grossmann. 2016. The Correlates of State Policy Project v.1.0. East Lansing, MI: Institute for Public Policy and Social Research (IPPSR).

The package allows the user to load and work with the dataset using the R programming language. Crucially, it incorporates the entire codebook into the dataset, which allows for easier filtering, finding units and sources, etc.

Example use


data(csp, package = "csp")
csp[1:2, ]
df <- subset(csp, variable == "real2_pc_inc_quar")
df$value <- as.numeric(df$value)

ggplot(df, aes(x = year, y = value, color = state)) +
  geom_line(show.legend = FALSE) +
  scale_color_grey() +
  theme_light() +
  labs(x = NULL, y = NULL,
       title = df$var_desc[1],
       subtitle = df$var_long_desc[1])


This package is not affiliated with, nor endorsed by, the Correlates of State Policy Project. All credit go to the original authors, and questions should be directed to them. Please check the official website for further details on citations, etc.

expersso/csp documentation built on Sept. 23, 2018, 5:22 a.m.