[R] Interweaving cell entries from 2 columns
Jim Lemon
jim at bitwrit.com.au
Mon Aug 20 14:04:08 CEST 2007
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
More information about the R-help
mailing list