Hi there,

?reshape do the job.

bests
milton

On Thu, Jul 9, 2009 at 9:31 PM, roachyang <roachyang@gmail.com> wrote:

>
> I want to transpose a dataframe like
>      level   2006   2007   2008
>        A       ....
>        B      .....
>        C        ........
> into
>      level    year
>        A      2006
>        A      2007
>        A      2008
>        B      2006
>        B      2007
>           ......
> There is a procedure in SAS can do this, is there any function in R can do
> this?
>
> --
> View this message in context:
> http://www.nabble.com/how-to-transpose-a-dataframe-tp24420450p24420450.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


