Is this what you want: > x V1 V2 V3 V4 1 ascii1: 11 12 13 2 ascii2: 14 15 16 3 ascii3: 17 18 19 > z <- as.matrix(x[,-1]) > z V2 V3 V4 [1,] 11 12 13 [2,] 14 15 16 [3,] 17 18 19 > as.vector(z) [1] 11 14 17 12 15 18 13 16 19 >
On Thu, Nov 4, 2010 at 6:05 PM, DomDom <realown...@msn.com> wrote: > > okay sorry. > i´ve got three ascii files with pixel values without any header information. > > so if the first line of the three ascii files are: > > ascii1: 11 12 13 > ascii2: 14 15 16 > ascii3: 17 18 19 > > i would like a new matrix with: > 11,14,17;12,15,18;13,16,19; > > thx > > > -- > View this message in context: > http://r.789695.n4.nabble.com/creating-vectors-with-three-variables-out-of-three-datasets-tp3027852p3027880.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. > -- 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.