Try this:

stack(data.frame(list('A' = c(1,2,3), 'B' = c(4,5,6))))

On Mon, Jul 26, 2010 at 11:46 AM, Johannes Graumann <
johannes_graum...@web.de> wrote:

> Hi,
>
> Any ideas on how to efficiently convert
>
> > list(c(1,2,3),c(4,5,6))
>
> to
>
> > data.frame(OriginalListIndex=c(1,1,1,2,2,2),Item=c(1,2,3,4,5,6))
>
> Thanks for any hints,
>
> Joh
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to