I am a new user, and i am trying to sort out a data frame.



I have for example bins of data.  Within each bin i have multiple counts of animals and the depths at which these count were taken.  How would I summarise this to being only the maximum count per bin alongisde the corresponding height (but not the maximum depth - i want the depth at which the maximum number of animals occurs).



Thank you

	[[alternative HTML version deleted]]

