contr.ordinal | R Documentation |
Returns a matrix of contrasts for the train.kknn
.
contr.ordinal(n, contrasts = TRUE)
n |
A vector containing levels of a factor, or the number of levels. |
contrasts |
A logical value indicating whether contrasts should be computed. |
A matrix with n rows and n-1 columns for contr.ordinal, a matrix with n rows and n columns for contr.dummy and a vector of length n for contr.metric.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.