cutit {cutoff} | R Documentation |
Cut Continuous Vector to Classification
cutit(x, cut_points, include = "low", labels = FALSE)
x |
numeric vector |
cut_points |
cuting points value |
include |
The direction of cutoff point. Any left letter of lower or upper |
labels |
logical. False is defaulted. TRUE means set range as factor. |
numeric vector or factor
cutit(mtcars$disp,c(150,190))
cutit(mtcars$disp,c(150,190),labels = TRUE)