I have a data frame like this
Type value
cellA 2.02
cellA 2.56
cellB 1.24
cellB 2.34
cellB 4.56
cellC 3.55
cellC 2.36
cellC 6.78
cellC 3.56
and I want to subset it based on the topmost value for each type,,, so the output would be
Type value
cellA 2.56
cellB 4.56
cellC 6.78
How can I achieve this in R - does the unique command can be of any help - I am bit struck::: Thanks for the suggestions
M