RSNNS (version 0.4-12)

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)

Arguments

x

inputs

Value

the vector converted to a numeric vector

Examples

Run this code
# NOT RUN {
data(iris)
toNumericClassLabels(iris[,5])
# }

Run the code above in your browser using DataLab