I have matrix containing two columns and many rows. The first column name is idCombinaison
and the second column name is accuarcy
. The accuarcy
has a float values.
Now I want to get all rows which the value of accuarcy == max value
. In some cases (like depicted in the picture), I can have many rows which the value of accuarcy
equals to max, so I want to get all these rows!
I tried this:
maxAccuracy <- subset(accuarcyMatrix, accuarcyMatrix['accuarcy'] == max(accuarcyMatrix['accuarcy']))