Skip to content

Instantly share code, notes, and snippets.

@mickeypash
Created February 24, 2014 06:51
Show Gist options
  • Save mickeypash/9183079 to your computer and use it in GitHub Desktop.
Save mickeypash/9183079 to your computer and use it in GitHub Desktop.
This is what I came up with. Not sure if this works for you.
clippedaod <- data.frame(yr=c(2000,2001,2002,2003,2004,2005))
tst <- c()
for(i in 2000:2013){
tst[i] <- (clippedaod$yr == i)
print(i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment