Skip to content

Instantly share code, notes, and snippets.

@beachandbytes
Created November 16, 2013 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beachandbytes/7494610 to your computer and use it in GitHub Desktop.
Save beachandbytes/7494610 to your computer and use it in GitHub Desktop.
foreach(i=unique(CCR$ID)) %do% {
row <- subset(CCR, ID == i)
CCR$OldEmployerRate[CCR$ID==i] <- ECR$Rate[ECR$EID == row$EID]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment