Skip to content

Instantly share code, notes, and snippets.

@mhermans
Created June 23, 2010 09:55
Show Gist options
  • Save mhermans/449720 to your computer and use it in GitHub Desktop.
Save mhermans/449720 to your computer and use it in GitHub Desktop.
Basic example for the R strat package
library(strat)
isco <- c(1200, 3131, 9110)
isei <- recode(isco, informat="isco88", outformat="isei")
esec <- recode(isco, informat="isco88", outformat="esec")
table(isei, esec)
esec
isei 1 4 6
29 0 1 0
48 0 0 1
68 1 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment