Skip to content
Prev 381549 / 398502 Next

Tricky filtering

Thanks for the nice dput example, but your specification confuses me.
What if the 2 records with largest Mean_power are not the same as the two
with largest N_records. Do you want to keep all four records? Or various
combinations of this question that would keep 3 records. And will you
always have two records on a date, or could you have just one? And if the 2
records with largest Mean_power always also have the largest N_records,
then you only need to choose the two with largest Mean_power and can ignore
the N_records, right?

Once you have answered these questions -- or someone else has a better
understanding than I -- it should be easy. It will require a loop of one
form or another, however, and therefore might take a while.

Cheers,
Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Wed, Oct 30, 2019 at 7:55 PM Cacique Samurai <caciquesamurai at gmail.com>
wrote: