I have an org
table:
| Student | Score 1 | Score 2 | Score 3 | Score 4 | Score 5 | Mean | Mean (Lowest Two Dropped) |
|---------+---------+---------+---------+---------+---------+--------+---------------------------|
| John | 5.74 | 84.43 | 8.32 | 46.71 | 37.94 | 36.628 | |
| Paul | 70.13 | 83.51 | 85.95 | 8.78 | 55.53 | 60.78 | |
| George | 66.28 | 20.80 | 2.63 | 69.76 | 46.85 | 41.264 | |
| Ringo | 50.93 | 66.09 | 44.76 | 19.50 | 16.32 | 39.52 | |
#+TBLFM: @2$7..@>$7=vmean($2..$6)
Column 1 lists a student. Columns 2-6 list each student's score on an assignment.
The code vmean($2..$6)
can be used to compute each student's average score on all five assignments.
I'd like to be generous to my students and drop the lowest n
scores (in this case n=2
). I'm having trouble figuring out how to accomplish this.
Is there a simple way to drop the lowest n
scores for each student and take the new average?