Re: [R] how to transpose a dataframe

2009-07-09 Thread milton ruser
AS is relevant, but if > > you really want SAS, I presume you know where to find it.) > > > > From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On > > Behalf Of roachyang [roachy...@gmail.com] > > Sent: 10 July 2009 11:31 > > To: r-help@r-project.org &g

Re: [R] how to transpose a dataframe

2009-07-09 Thread roachyang
I presume you know where to find it.) > > From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On > Behalf Of roachyang [roachy...@gmail.com] > Sent: 10 July 2009 11:31 > To: r-help@r-project.org > Subject: [R] how to transpose

Re: [R] how to transpose a dataframe

2009-07-09 Thread Bill.Venables
-help-boun...@r-project.org] On Behalf Of roachyang [roachy...@gmail.com] Sent: 10 July 2009 11:31 To: r-help@r-project.org Subject: [R] how to transpose a dataframe I want to transpose a dataframe like level 2006 2007 2008 A B . C

Re: [R] how to transpose a dataframe

2009-07-09 Thread Henrique Dallazuanna
try this: transform(stack(DF, select = -level), values = DF$level) On Thu, Jul 9, 2009 at 10:30 PM, roachyang wrote: > > I want to transpose a dataframe like > level 2006 2007 2008 >A >B . >C > into > levelyear >

Re: [R] how to transpose a dataframe

2009-07-09 Thread milton ruser
Hi there, ?reshape do the job. bests milton On Thu, Jul 9, 2009 at 9:31 PM, roachyang wrote: > > I want to transpose a dataframe like > level 2006 2007 2008 >A >B . >C > into > levelyear >A 2006 >

Re: [R] how to transpose a dataframe

2009-07-09 Thread Rolf Turner
On 10/07/2009, at 1:31 PM, roachyang wrote: I want to transpose a dataframe like level 2006 2007 2008 A B . C into levelyear A 2006 A 2007 A 2008 B 2006

[R] how to transpose a dataframe

2009-07-09 Thread roachyang
I want to transpose a dataframe like level 2006 2007 2008 A B . C into levelyear A 2006 A 2007 A 2008 B 2006 B 2007 .. There is