Learn R Programming

inTrees (version 1.3)

dicretizeVector: discretize a variable

Description

discretize a variable

Usage

dicretizeVector(v, K = 3)

Arguments

v

vector

K

discretize into up to K levels with equal frequency

Value

discretized levels for v

Examples

Run this code
# NOT RUN {
 data(iris)
 dicretizeVector(iris[,1],3)
# }

Run the code above in your browser using DataLab