Skip to content
Back to formatted view

Raw Message

Message-ID: <1336099005026-4607658.post@n4.nabble.com>
Date: 2012-05-04T02:36:45Z
From: marc212
Subject: Breaking up a Row in R (transpose)

I have the following:
Time   A1   A1   B1   B1   C1   C2
              x     y     x      y       x     y
 0         5     6      6      7      7      9
  1         3     4      4      3      9      9  
  2         5     2      6      4     7       4

I want to change it to the following:
        0           1             2
        x    y     x    y     x    y 
A1  5    6     3   4      5    2
B1  6    7     4   3      6   4
etc for a much larger set

I am sure there are ways to accomplish through a lot of for loops but I feel
there is most likely a function to use.

Thank you. 

--
View this message in context: http://r.789695.n4.nabble.com/Breaking-up-a-Row-in-R-transpose-tp4607658.html
Sent from the R help mailing list archive at Nabble.com.