[R] Reshape Dataframe
Bert Jacobs
b.jacobs at pandora.be
Tue Dec 18 15:07:58 CET 2007
Hi,
I'm having a bit of problems in creating a new dataframe.
Below you'll find a description of the current dataframe and of the
dataframe that needs to be created.
Can someone help me out on this one?
Thx in advance.
Bert
Current Dataframe
Var1 Var2 Var3 Var4
A Fa W1 1
A Si W1 2
A Fa W2 3
A Si W3 4
B Si W1 5
C La W2 6
C Do W4 7
New Dataframe
Var1 Var2 W1 W2 W3 W4
A Fa 1 3
A Si 2 4
A La
A Do
B Fa
B Si 5
B La
B Do
C Fa
C Si
C La 6
C Do 7
More information about the R-help
mailing list