[R] Help with the Cut Function
Shivi Bhatia
shivipmp82 at gmail.com
Sat Jun 25 21:05:45 CEST 2016
Dear Team,
Please see the code below:
Age1<- cut(desc$Age, breaks = c(20,30,40,Inf),labels = c("Low","Mid","Top"))
here i am creating three categories as mentioned from the age var from desc
data set.
All the values are set correctly however the values which are below 20 are
set to NA.
Is there anything i am doing incorrect.
Regards, Shivi
[[alternative HTML version deleted]]
More information about the R-help
mailing list