11:12 PM
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 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
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
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]
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 as one matrix of dimention 2 by 3, but remove
headers(X1,X2,X3) from the matrix. I wrote
as follows
4 matches
Mail list logo