Hello,
I have a data frame that looks similar to the one below. I need it to be sorted by type, species, sort, and then grade. It is mostly sorted how I want, however I don't want the species groups to be sorted in alphabetical order. I would like them to be sorted descending by the sum of 'Net BdFt' within each species and type group. Could anyone help me use dplyr to achieve this?
Type, Species, Sort, Grade, Gross BdFt, Net BdFt
1 4404 BB 0 9 164 16
2 4404 BB H Y 55 55
3 4404 BM 0 9 20 20
4 4404 BM H 4 631 419
5 4404 BM H Y 242 242
6 4404 BM P P 919 831
7 4404 CH H 4 266 206
8 4404 CH H Y 88 88
9 4404 CH P P 607 565
10 4404 CO H 3 648 531
11 4404 CO H 4 2043 1817
12 4404 CO H Y 31 31
13 4404 CO P P 416 286
14 4404 DF H 2 468 468
15 4404 DF H 3 167 167
16 4404 DF H 4 20214 19740
17 4404 DF H Y 613 613
18 4404 DF P P 5928 5930
39 4410 CH * * 161 161
41 4410 DF * * 18771 18756
46 4410 GF * * 3642 3642
49 4410 RA * * 549 549