I want to find how many maximum values in a data. I have used length but it gives me 1. The maximum value is 9 and I have two 9s, I want is to display 2. Is there a function in R that I can use?
data <- c(1, 3, 8, 9, 0, 9)
max(data)
length(max(data))