Try this: > x y1 y2 y3 y4 1 1 0 3 2 2 0 1 2 1 3 3 2 0 1 4 0 5 1 0 > as.vector(t(x)) [1] 1 0 3 2 0 1 2 1 3 2 0 1 0 5 1 0 >
On Sun, Jul 19, 2009 at 7:25 PM, Christopher Desjardins<cddesjard...@gmail.com> wrote: > Hi, > How can I perform the following > > y1 y2 y3 y4 > 1 0 3 2 > 0 1 2 1 > 3 2 0 1 > 0 5 1 0 > > into ... > >> y > 1 0 3 2 0 1 2 1 3 2 0 1 0 5 1 0 > > > Please cc me on reply as I subscribe to the digest. > Thanks! > Chris > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.