contr.metric {predictoR} | R Documentation |
Returns a matrix of contrasts for the train.kknn.
Description
Returns a matrix of contrasts for the train.kknn.
Usage
contr.metric(n, contrasts = TRUE)
Arguments
n |
A vector containing levels of a factor, or the number of levels. |
contrasts |
A logical value indicating whether contrasts should be computed. |
Author(s)
Joseline Quiros <joseline.quiros@promidat.com>
Examples
contr.metric(5)
[Package predictoR version 4.1.1 Index]