Suppose there are 10 students divided into 3 groups. Each student will take a test and get a score. The data is stored in a data.frame variable named d
as follows:
Group_no Grade
1 98
1 89
1 99
2 87
2 94
2 91
3 86
3 85
3 93
3 90
Question 1: Now I want to calculate the mean score for EACH GROUP, Can you give me a hint how to do so.
Question 2: How to count how many groups are in the list, suppose I did not know it in advance.
Thanks