I was working on the Faithful
built in data set in R and I wanted to find out the interval which had the maximum number of eruptions. I already grouped the data into intervals and using the max() function I get the value of the max eruptions but not the interval. Is there anyway to display the interval which has the maximum number of eruptions?
The table is given below:
[1.5,2) 51
[2,2.5) 41
[2.5,3) 5
[3,3.5) 7
[3.5,4) 30
[4,4.5) 73
[4.5,5) 61
[5,5.5) 4
Considering here, the max is 73
, how do I print [4, 4.5)
?