Why i get this erorr?
ageg <- cut(df$Age , breaks = c(20, 24, 29, 34, 39, 44, 49, 54, 59, 65))
Error in cut.default(df$Age, breaks = c(20, 24, 29, 34, 39, 44, 49, 54, :
'x' must be numeric
however, the class of age is numeric!!!
class(df$age)
[1] "numeric"