RSNNS (version 0.4-17)

toNumericClassLabels: Convert a vector (of class labels) to a numeric vector

Description

This function converts a vector (of class labels) to a numeric vector.

Usage

toNumericClassLabels(x)

Value

the vector converted to a numeric vector

Arguments

x

inputs

Examples

Run this code
data(iris)
toNumericClassLabels(iris[,5])

Run the code above in your browser using DataLab