I have a table from which I require a sub-table that has unique values of column A and the maximum value of that particular A value from column B.
Example, I have the df:
Image may be NSFW.
Clik here to view.
How do I get the output like this? Image may be NSFW.
Clik here to view.
How could I achieve this in R?