# checkMissings
pisa2 <- changeValLabels(pisa, varName = "computer_age",
value = 5, valLabel = "missing: No computer use")
pisa3 <- checkMissings(pisa2)
# checkMissingsByValues
pisa4 <- changeValLabels(pisa, varName = "computer_age",
value = c(-49, -90, -99), valLabel = c("test1", "test2", "test3"))
pisa5 <- checkMissingsByValues(pisa4, missingValues = -50:-99)
Run the code above in your browser using DataLab