Hi all,
I have a df like this one and what I would like to do is select only the top 2 species about their abundances in all the stations.
Like have the two species who are the more abundant
rr <- tribble(
~Station, ~Sp1, ~Sp2, ~Sp3, ~Sp4,
'A1', 1, 5, 6, 4
'A2', 3, 2, 6, 1
'A3', 7, 0, 1, 3
'A4', 0, 5, 6, 7,
'A5', 1, 0, 6, 0,
'A6', 0, 0, 4, 2,
'A7', 8, 2, 1, 7,
'A8', 0, 11, 1, 17,
'A9', 5, 2, 9, 7
)
Thanks