Skip to content
Prev 179920 / 398506 Next

aggregate over x cases

try this,


library(plyr)
ddply(d, .(block, trial), function(.d) .d[1:2, ])
HTH,

baptiste
On 11 May 2009, at 13:49, Jens B?lte wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag