View source: R/factor_manipulation.R
get_most_frequent_element | R Documentation |
Provide most frequent element in a list, a data.frame
or data.table
column
get_most_frequent_element(x)
x |
A list, |
The most frequent element
# Build example list
example_list <- c(1, 1, 2, 3, 1, 4, 1)
# Compute most frequent element
get_most_frequent_element(example_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.