Mode | R Documentation |
Computes the most frequently occuring value in a sampling distribution.
Mode(x, categorical = FALSE)
x |
a vector |
categorical |
logical. If |
a scalar
data(catchments,package='geostats') m1 <- Mode(catchments$CaMg,categorical=TRUE) m2 <- 1:50 for (i in m2){ m2[i] <- Mode(rnorm(100),categorical=FALSE) } hist(m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.