powered by
This function converts a vector (of class labels) to a numeric vector.
toNumericClassLabels(x)
the vector converted to a numeric vector
inputs
data(iris) toNumericClassLabels(iris[,5])
Run the code above in your browser using DataLab