Re: [R] Convetring a dataframe so that it just has one column

2007-07-03 Thread Richard M. Heiberger
?stack tmp <- data.frame(a=1:10, b=11:20) stack(tmp) __ 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-

[R] Convetring a dataframe so that it just has one column

2007-07-03 Thread Leeds, Mark \(IED\)
I have two dataframes, yendog and datasub as below and I want to do the same thing to both of them, namely convert them so that they retain their dataframeness but stack the columns into 1 column. I don't need names on the results. I did try temp1<-do.call("rbind",datasub) temp2<-do.call("rbind"