Re: [R] Help with cast/reshape

2011-10-03 Thread Petr PIKAL
Hi > > I realize that this is terribly basic, but I just don't seem to see it at > this moment, so I would very much appreciate your help. > > > How shall I transform this dataframe: > > > df1 > Name Index Value > 1a 1 0.1 > 2a 2 0.2 > 3a 3 0.3 > 4a 4

Re: [R] Help with cast/reshape

2011-10-01 Thread Daniel Malter
df2<-melt(df1) df3<-cast(df2,Index~Name) df3 HTH, Daniel Dana Sevak wrote: > > I realize that this is terribly basic, but I just don't seem to see it at > this moment, so I would very much appreciate your help. > > > How shall I transform this dataframe: > >> df1 >   Name Index Value > 1   

[R] Help with cast/reshape

2011-09-30 Thread Dana Sevak
I realize that this is terribly basic, but I just don't seem to see it at this moment, so I would very much appreciate your help. How shall I transform this dataframe: > df1   Name Index Value 1    a 1   0.1 2    a 2   0.2 3    a 3   0.3 4    a 4   0.4 5    b 1   2.1 6    b