[R] Reshaping a table

IOANNA
2013-04-08T12:09:55Z

Hello all,



I have data in the form of a table:



X      Y1    Y2

0.1   3       2

0.2   2       1



And I would like to transform in the form:



X     Y

0.1   Y1

0.1   Y1

0.1   Y1

0.1   Y2

0.1   Y2

0.2  Y1

0.2  Y1

0.2  Y2



Any ideas how?



Thanks in advance,

IOanna








	[[alternative HTML version deleted]]