jenny wrote:
> Hi, how do I interweave 2 columns of data into a single column?  See 
> illustration below. Thx-jenny I have 2 columns of data Col1   Col21          
> 2 3          45          6 7          89          10 I want to create a new 
> column with interlocking cell centries12345678910   Get the new Windows Live 
> Messenger! Try it!

tddf<-data.frame(a=seq(1,9,by=2),b=seq(2,10,by=2))
as.vector(t(tdf))

Jim

______________________________________________
R-help@stat.math.ethz.ch 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