moda | R Documentation |
Computes the mode of a random variable.
moda(y = y)
y |
is a numeric vector. |
The mode is an statistics representing the most "used" value of the random variable as a way of central position.
The function returns the mode, a numeric scalar.
Christian Salas-Eljatib.
set.seed(1234)
variable <- rnorm(10, mean=45,sd=6)
#using the function
moda(y=variable)
moda(variable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.