I need to sort in reverse alphabetical order by eye color, breaking ties by increasing weight
and find out who's the fourth male from above! Does aggregate
have a sort
function? What does it mean to break the ties by increasing weight
in R? Can you please provide the answer with an example?
Here's the data frame:
jalal
age sex weight eye.color hair.color
1 23 F 93.8 blue black
2 21 M 180.8 amber gray
3 22 F 196.5 hazel gray
4 22 M 256.2 amber black
5 21 M 219.6 blue gray
6 16 F 152.1 blue gray
7 21 F 183.3 gray chestnut
8 18 M 179.1 brown blond
9 15 M 206.1 blue white
10 19 M 211.6 brown blond
11 20 F 209.4 blue white
12 21 M 194.0 brown auburn
13 22 F 204.1 green black
14 21 F 157.4 hazel red
15 15 F 238.0 green gray
16 20 F 154.8 gray gray
17 16 F 245.8 gray gray
18 23 M 198.2 gray red
19 19 M 169.1 green brown
20 24 M 198.0 green gray