[R] Averaging column scores when participants vary in number of observations
JS Huang
js.huang at protective.com
Fri Feb 20 02:36:19 CET 2015
Hi,
Another implication:
> data1
Observation Participant.ID Video.Coder Score
1 A 1 Donald 4
2 B 1 Tracy 5
3 C 2 Donald 6
4 D 3 Sam 2
5 E 3 Tracy 3
6 F 4 Donald 2
7 G 4 Tracy 1
8 H 5 Sam 8
> tapply(data1$Score,data1$Participant.ID,mean)
1 2 3 4 5
4.5 6.0 2.5 1.5 8.0
--
View this message in context: http://r.789695.n4.nabble.com/Re-Averaging-column-scores-when-participants-vary-in-number-of-observations-tp4703549p4703561.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list