16 May 2012 05:18
Splus equivalent of reshape in R
Santosh <santosh2005 <at> gmail.com>
2012-05-16 03:18:10 GMT
2012-05-16 03:18:10 GMT
Hello R/Splus users.. I am posting in R discussion group in hope of wider response compared to what I received from Splus user groups.... Was wondering if there is any function available in Splus 8.2 that is equivalent to "reshape" of R? Below is a sample dataset. Size [both rows and columns) of the dataset may vary X1 Y1 Y2 Y3 0.25 40 38 22 0.5 44 41 43 1 32 32 58 2 25 25 25 4 23 26 17 6 10 11 23 8 10 92 13 24 1.7 15 4.6 and I would like to have them stacked.... as shown below.. id x y 1 0.25 40 1 0.5 44 1 1 32 1 2 25 1 4 23 1 6 10 1 8 10 1 24 1.7 2 0.25 38(Continue reading)
RSS Feed