Turn numeric into categorical data AdultUCI age…


celibataires à villemomble Turn numeric into categorical data.

Tupaciguara AdultUCI[["age"]] <- ordered(cut(AdultUCI[["age"]], c(15,25,45,65,100)), labels = c("Young", "Middle-aged", "Senior", "Old"))


Leave a Reply

Your email address will not be published. Required fields are marked *