# NOT RUN {
# Load messy_adult
data("messy_adult")
# we wil change mail and education
head(messy_adult[, .(mail, education)])
messy_adult <- setColAsFactorOrLogical(messy_adult, cols = c("mail", "education"))
sapply(messy_adult[, .(mail, education)], class)
head(messy_adult[, .(mail, education)])
# education is now a factor and mail a logical wether there was or not an mail.
# }
Run the code above in your browser using DataLab