Selecting the best values of a data frame

Hi Teun,

In order to help you quicker and better, can you please provide a reprex? It especially helps if you provide a small sample of your dataset and what the end result should look like.