getmode | R Documentation |
Get the mode from a vector
getmode(v)
v |
A vector |
A vector containing the most frequent value in a vector. If there is a tie, the top values will be returned. R currently has no built-in function to get mode
hps <- mtcars$hp
getmode(hps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.