Skip to content

Instantly share code, notes, and snippets.

@smasunaga
smasunaga / gist:7013197
Last active December 25, 2015 17:29
How to make a chart of unemployment changes from 2009-2013
read.csv("unemployment.csv")
unemployment <- read.csv("unemployment.csv")
data_for_2009 <- subset(unemployment, Year == 2009 & Month == 1)
data_for_2013 <- subset(unemployment, Year == 2013 & Month ==7)
data_for_2009 [,c("Area", "Unemployment.Rate")]
data_for_2013[,c("Area", "Unemployment.Rate")]
small_09 <-data_for_2009[,c("Area", "Unemployment.Rate")]
small_13 <-data_for_2013[,c("Area", "Unemployment.Rate")]
names(small_09)[2] <- "u_rate"
names(small_13)[2] <- "u_rate"