Hi french, Here is a suggestion:
x <- c(2, 3, 4, 2, 1, 6, 6, 4, 7) matrix(x, ncol = 3) # [,1] [,2] [,3] # [1,] 2 2 6 # [2,] 3 1 4 # [3,] 4 6 7 HTH, Jorge On Tue, Nov 3, 2009 at 2:05 PM, frenchcr <> wrote: > > say i have a column of data like this... > > 2 > 3 > 4 > 2 > 1 > 6 > 6 > 4 > 7 > > and i want it in three columns like this > > 226 > 314 > 467 > > ...so i can make a contour plot. > > > How do i do this? > -- > View this message in context: > http://old.nabble.com/one-long-column-of-data--%3E-three-small-columns-tp26163165p26163165.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.