| getMode | R Documentation | 
this function computes the modal value of a specified column of a data frame
getMode(df, col, side = c("lower", "upper"))
| df | a data frame | 
| col | a column name or column number | 
| side | in case of a tie, which side should be returned | 
a vector
Tim Appelhans, Florian Detsch
df <- data.frame(a = c(1, 2, 2, 2, 3, 3, 3, 4, 5, 6, 7), 
                 b = c("a", "b", "c", "c", "d", "e", "e", "e", "e", "f", "g"))
getMode(df, "a")
getMode(df, "a", "upper")
getMode(df, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.