50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

cutoff (version 1.3)

cutit: Cut Continuous Vector to Classification

Description

Cut Continuous Vector to Classification

Usage

cutit(x, cut_points, include = "low", labels = FALSE)

Arguments

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.

Value

numeric vector or factor

Examples

Run this code
# 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