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
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
-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
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
>
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
>
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
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
7 matches
Mail list logo