Cut Continuous Vector to Classification
cutit(x, cut_points, include = "low", labels = FALSE)
numeric vector
cuting points value
The direction of cutoff point. Any left letter of lower or upper
logical. False is defaulted. TRUE means set range as factor.
numeric vector or factor
# NOT RUN {
cutit(mtcars$disp,c(150,190))
cutit(mtcars$disp,c(150,190),labels = TRUE)
# }
Run the code above in your browser using DataLab