Mode {evobiR} | R Documentation |
R's base package function mode returns the type of object 'numeric', 'character' etc. This give the option of an easy to remember work around for that.
Mode(x)
x |
a numerical vector. |
Returns the most frequently occuring value in a vector. In the case of a tie it will return the mode which has the earliest initial occurence in the vector
returns the most frequently occuring value in a series of numbers
Heath Blackmon
Mode(c(1,2,3,4,5,6,2,5))