test <- SD2011[1:20]
data.mlevs1 <- mergelevels.syn(test, vars = c(3,5,18:20),minsize = 20, addNA = TRUE,
print.flag = TRUE, newlabel = TRUE)
mlevs <- list(agegr = c("60+", "60-64" , "65+"),socprof = c("NEW","UNEMPLOYED","FARMER"))
data.mlevs2 <-mergelevels.syn(test, merge.byhand = TRUE, merge.details = mlevs,
addNA=TRUE, print.flag = TRUE)
Run the code above in your browser using DataLab