max_rep: max_rep Find the element that repeats the most in a given vector and calculate its proportion.
Description
max_rep Find the element that repeats the most in a given vector and calculate its proportion.
Usage
max_rep(v)
Arguments
v
a vector
Value
max_rep_value contains two elements: max_element and max_element_proportion. max_element is the element that repeats the most in v, and max_element_proportion
is its proportion.