bug in call to plyr

needed .(runs.index) not runs.index

I think