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 wrote:
>
> okay sorr
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:
ht
DomDom wrote:
Hi there,
i´ve got a problem with how to create a vector with three variables out of
three seperate ascii files.
These three ascii files contain pixel information of the same image but
different bands and i need a matrix of
vectors, with each vector containing the corresponding
Hi there,
i´ve got a problem with how to create a vector with three variables out of
three seperate ascii files.
These three ascii files contain pixel information of the same image but
different bands and i need a matrix of
vectors, with each vector containing the corresponding pixel values for
4 matches
Mail list logo