[R] strange dlply behavior

2009-07-21 Thread Damien Moore
I'm running R 2.9.1 on winXP, using the library plyr. Can anyone explain to me what is going wrong in this code? (in particular see lines marked with **) Trying to modify objects in a list created using dlply seems to corrupt the objects in the list. library(plyr)

Re: [R] strange dlply behavior

2009-07-21 Thread hadley wickham
Hi Damien, This is because of a small bug. You can work around it by explicitly using the force function - dlply(d, V1, force). The default will be fixed in the next version. Regards, Hadley On Tue, Jul 21, 2009 at 11:18 AM, Damien Mooredamienlmo...@gmail.com wrote: I'm running R 2.9.1 on