G
Guest
The table looks as follows: (table - see further down)
ID - several rows have the same ID
Species - each of those rows with a specific ID have diff. species, making a
combination of ID and Species a unique ID for each row.
Number of individuals - in lake 1 there is 12 pike and 2 perch.
THE QUESTION:
How do I group so that I recieve one row for each ID with each species, and
not have e.g. 2 rows with ID 1 and perch. Additionally - how do I get the sum
of No of individuals in each group?
Thank you!!
/Johanna
ID Species Number of individuals
1 Pike 12
1 Perch 2
1 Perch 5
2 Pike 4
2 Pike 18
2 Carp 8
2 Roach 56
3 Carp 7
3 Carp 2
4 Pike 90
4 Roach 88
ID - several rows have the same ID
Species - each of those rows with a specific ID have diff. species, making a
combination of ID and Species a unique ID for each row.
Number of individuals - in lake 1 there is 12 pike and 2 perch.
THE QUESTION:
How do I group so that I recieve one row for each ID with each species, and
not have e.g. 2 rows with ID 1 and perch. Additionally - how do I get the sum
of No of individuals in each group?
Thank you!!
/Johanna
ID Species Number of individuals
1 Pike 12
1 Perch 2
1 Perch 5
2 Pike 4
2 Pike 18
2 Carp 8
2 Roach 56
3 Carp 7
3 Carp 2
4 Pike 90
4 Roach 88