[R] recognizing variable-names of cast() (package: reshape)

2009-11-22 Thread David Douterlungne
Dear R Users, Reshape seems to be very useful for data-manipulation, but I am struggling with the function cast. My variable-names are not being recognized by cast() cca-a-cast(mma,sp~area,mean) Error: Casting formula contains variables not found in molten data: area

Re: [R] recognizing variable-names of cast() (package: reshape)

2009-11-22 Thread hadley wickham
Hi David, The variable names of mma are sp, dentro, variable and value - area is not a variable in that data frame. Hadley On Sun, Nov 22, 2009 at 9:48 PM, David Douterlungne daviddou...@hotmail.com wrote: Dear R Users, Reshape seems to be very useful for data-manipulation, but I am