[R] Removing header from a matrix
I have three column vectors (X1, X2, X3).
X1 X2 X3
20 25 40
100 90 80
I want to put them as one matrix of dimention 2 by 3, but remove
headers(X1,X2,X3) from the matrix. I wrote
as follows
U<-cbind (X1,X2,X3)
the headers are th
ect.org] On Behalf Of Dereje Bacha
> Sent: Sunday, October 07, 2012 10:13 PM
> To: r-help@r-project.org
> Subject: [R] Removing header from a matrix
>
> I have three column vectors (X1, X2, X3).
> X1 X2 X3
>20 25 40
>100 90 80
> I want to put them
You need to clarify what you have and what you want. Please use the dput()
function to create a reproducible example that we can enter into R to make
suggestions about. [1]
There are a couple of possible things that could be going on here, and what you
have given so far is ambiguous.
[1]
http
I have three column vectors (X1, X2, X3).
X1 X2 X3
20 25 40
100 90 80
I want to put them as one matrix of dimention 2 by 3, but remove
headers(X1,X2,X3) from the matrix. I wrote
as follows
U<-cbind (X1,X2,X3)
the headers are there. I need help please. Thanks
Dereje
4 matches
Mail list logo