powered by
Via http://stackoverflow.com/questions/2547402/is-there-a-built-in-function-for-finding-the-mode
Mode(x, exclude_na = TRUE)
vector
Exclude NA from being a possible mode.
Vector of modal values in arbitrary order.
# NOT RUN { library(ck37r) data(Boston, package = "MASS") table(Boston$chas) Mode(Boston$chas) # }
Run the code above in your browser using DataLab