I have a question relating to R. I have data that looks like this:
Name Value
A 8.0
C 8.1
B 8.1
D 8.2
I used df[order(as.numeric(df[,2])), ]
, which sorted the value column in an ascending order as shown and had the Name column sorted accordingly. However, I would now like to sort the name column alphabetically for repeated values... So since there are two counts of 8.1, I want to lexographically sort B and C.