RSNNS (version 0.4-9)

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
data(iris)
toNumericClassLabels(iris[,5])

Run the code above in your browser using DataCamp Workspace