# Basic examples
mfv(c(3, 4, 3, 2, 2, 1, 2)) # 2
mfv(c(TRUE, FALSE, TRUE)) # TRUE
mfv(c("a", "a", "b", "a", "d")) # "a"
mfv(c("a", "a", "b", "b", "d")) # c("a", "b")
mfv1(c("a", "a", "b", "b", "d")) # "a"
Run the code above in your browser using DataLab