powered by
Calculates the mode of a given vector.
calc_mode(x)
Any kind of vector <U+2014> numeric, character, logical.
The mode(s) of that vector.
# NOT RUN { calc_mode(c(1, 1, 2, 3, 4)) calc_mode(c('the', 'quick', 'brown', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog')) calc_mode(c(TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE)) # }
Run the code above in your browser using DataLab