I have a data file with indicates pretest scores for a linguistics
experiment. The data are in long form so for each of 33 subjects there are
400 rows, one for each item on the test, and there is a column called
Correct that shows C for a correct response and E for an incorrect
response. I
Try this:
tapply(mydata$Correct, mydata$Subject, function(x)sum(x == C))
Sarah
On Thu, Mar 24, 2011 at 3:24 PM, Kevin Burnham kburn...@gmail.com wrote:
I have a data file with indicates pretest scores for a linguistics
experiment. The data are in long form so for each of 33 subjects there
Hi Kevin,
Try this (untested):
sapply(split(pretestdata, Subject), function(l) with(l$Correct == C))
HTH,
Jorge
On Thu, Mar 24, 2011 at 3:24 PM, Kevin Burnham wrote:
I have a data file with indicates pretest scores for a linguistics
experiment. The data are in long form so for each of 33
On Thu, Mar 24, 2011 at 2:24 PM, Kevin Burnham kburn...@gmail.com wrote:
I have a data file with indicates pretest scores for a linguistics
experiment. The data are in long form so for each of 33 subjects there are
400 rows, one for each item on the test, and there is a column called
4 matches
Mail list logo