Learn R Programming

som.nn (version 1.4.4)

som.nn.round.votes: Rounds a dataframe with vectors of votes for SOMnn

Description

Each row of the data.frame may sum up to 1.0 before and after rounding. Rounding is performed with round.probabilities.

Usage

som.nn.round.votes(votes, classes, digits = 2)

Value

data.frame with roundes rows of class probabilities. other columns are not affected.

Arguments

votes

data.frame with rows of class probabilities.

classes

character vector with name of categories. Names must match the column names of probabilities to be rounded.

digits

precision; default = 2.