Description Usage Arguments Details Value Author(s) See Also Examples
A function which determines the majority class of a vector (treated as factor).
1 | majority(x)
|
x |
a one dimensional vector |
This function treats the input vector as a factor and determines which level (class) of the factor is present most often. If two or more levels tie for majority then a random selection is made among the ties.
The factor level which occurs most often in x.
Atina Dunlap Brooks
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.