On Fri, 3 Dec 2021, Rui Barradas wrote:
which.max(pdx_disc$cfs) [1] 8054
This is the *index* for which cfs is the first maximum, not the maximum value itself.
Rui, Mea culpa! I completely forgot this.
Therefore, you probably want any of filter(pdx_disc, cfs == cfs[8054]) filter(pdx_disc, cfs == cfs[which.max(cfs)]) filter(pdx_disc, cfs == max(cfs)) # I find this one better, simpler
Hope this helps,
Yes, it does. Thank you very much, Rich ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.