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
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
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
3 matches
Mail list logo