Re: [R] Help Required in using cast (reshape package) function

2007-11-21 Thread hadley wickham
On 11/21/07, Punit Anand <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Since the fields in variables column are unique with respect to ID and > fiscal year; any function like > sum,min,max,mean etc will lead to the desired result You should probably check that, as the warning only occurs when a

Re: [R] Help Required in using cast (reshape package) function

2007-11-21 Thread Punit Anand
Hello everyone, Since the fields in variables column are unique with respect to ID and fiscal year; any function like sum,min,max,mean etc will lead to the desired result Therefore cast(dataread, ID + Period ~ variable,sum) Will lead to the desired result in my case; Thanks, Punit -Ori

[R] Help Required in using cast (reshape package) function

2007-11-21 Thread Punit Anand
Hello everyone, I am new to R. I have data in the form of excel pivot table format and I want to cast it into a format which can make it compatible with computation. Since I already have the package in pivot format; I avoid melt function and use the cast directly. I inspect the dataread <- re