SamiC wrote: > > 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 >
Post a small example that contains sufficient complexity to represent the problem and also post what you consider to be the correct answer. -- David. -- View this message in context: http://r.789695.n4.nabble.com/Sorting-Dataframes-tp3580075p3580521.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.