edu_recode | R Documentation |
New nettskjema data requires codebook to not have special characters, and as such the old and new coding scheme does not fit. This function turns new coding scheme into the old, wanted one
edu_recode(x, names = TRUE)
x |
character vector of old scheme |
names |
logical. toggle return of names rather than numbers |
character
eds <- c(NA, "UnderGrad_BA", "HighSchool_Initial", "PostGrad_MA",
"PostGrad_PhD", "HighSchool", "Junior-HighSchool", "HighSchool_addition")
edu_recode(eds)
eds <- c(1,5,8,2,6,9,1,10)
edu_recode(eds, names = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.