Odd I couldn't find a similar question in stackoverflow.
Suppose I have
test1 <- list("1" = c(1, 2, 3), "2" = c(1, 2, 3), "3" = c(4, 5, 6))
want2 <- c(1, 2, 3)
test2 <- list("1" = iris, "2" = iris, "3" = mtcars)
want2 <- iris
How many I find the most frequent element in a list?