Mode | R Documentation |
Compute the mode of a numerical vector
Mode(x)
x |
A vector with numbers |
'Mode' returns a value representing the most frequent numerical value in the vector 'x'
# Finding the mode of a vector of numbers
x <- c(1, 2, 2, 3, 5, 8, 10)
Mode(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.