Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 212017

subset a data frame using unique rows in R [duplicate]

$
0
0

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: enter image description here

How do I get the output like this? enter image description here

How could I achieve this in R?


Viewing all articles
Browse latest Browse all 212017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>