Skip to content
Prev 70633 / 398526 Next

how to "singlify" entries

On Mon, May 30, 2005 at 09:15:32AM +0000, zhihua li wrote :
Dear list,

I am a new subscriber, using R to analyse genomics data. I have a
similar question, maybe even identical, but I am not sure...
frame with one factor and one value per level in the removed factor.

For instance:

F1      F2      V
-----------------
A       X       3
A       Y       6
B       X       5
C       X       9
C       Y       3

Would become:

F1      VX      VY
------------------
A       3       6
B       5       0
C       9       3

I am sure I have seen a tool to do this some time ago, but I do not remember
its name.

Can somebody help me ?

Best regards,