Re: [R] Reshape Columns

2010-12-09 Thread Henrique Dallazuanna
Try this: c(rbind(ColA, ColB)) On Thu, Dec 9, 2010 at 3:30 PM, Ross, Stephanie wrote: > Hello, > > I have a general formatting question. I have two columns of data: > > ColA <- c("m", "m", "m", "m") > ColB<- c("d","d","d","d") > > And I would like to reorder them into a new column that looks lik

Re: [R] Reshape Columns

2010-12-09 Thread Erik Iverson
One way: as.vector(t(cbind(ColA, ColB))) Ross, Stephanie wrote: Hello, I have a general formatting question. I have two columns of data: ColA <- c("m", "m", "m", "m") ColB<- c("d","d","d","d") And I would like to reorder them into a new column that looks like this: ColC<- c("m","d","m","d",

[R] Reshape Columns

2010-12-09 Thread Ross, Stephanie
Hello, I have a general formatting question. I have two columns of data: ColA <- c("m", "m", "m", "m") ColB<- c("d","d","d","d") And I would like to reorder them into a new column that looks like this: ColC<- c("m","d","m","d","m","d","m","d") Thank you! Stephanie ___