Re: [R] Transpose of the rows

2013-06-26 Thread Blaser Nello
reshape(dta, idvar="id", timevar="name", direction="wide") -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nico Met Sent: Mittwoch, 26. Juni 2013 13:38 To: R help Subject: [R] Transpose of the rows D

Re: [R] Transpose of the rows

2013-06-26 Thread arun
N00016-014A -0.5843794 -0.8428928 -7939.444 -13.594147   12.200 #3 TN00031-014A  0.8001962  0.1741609 -1200.824 -25.868973   NA A.K. - Original Message - From: Nico Met To: R help Cc: Sent: Wednesday, June 26, 2013 7:37 AM Subject: [R] Transpose of the rows Dear R users,

[R] Transpose of the rows

2013-06-26 Thread Nico Met
Dear R users, I am using a big data matrix and need to transpose rows (formatting of input matrix). I would like write a general code for this example. for example: my input file is "dta" dput(dta) structure(list(id = structure(c(1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L), .Label =