get_most_frequent_element {dataPreparation} | R Documentation |
Get most frequent element
Description
Provide most frequent element in a list, a data.frame
or data.table
column
Usage
get_most_frequent_element(x)
Arguments
x |
A list, |
Value
The most frequent element
Examples
# Build example list
example_list <- c(1, 1, 2, 3, 1, 4, 1)
# Compute most frequent element
get_most_frequent_element(example_list)
[Package dataPreparation version 1.1.1 Index]