[R] Removing header from a matrix

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Mon Oct 8 06:16:17 CEST 2012


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://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Dereje Bacha <d_bacha at yahoo.com> wrote:

>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
>	[[alternative HTML version deleted]]
>
>
>
>------------------------------------------------------------------------
>
>______________________________________________
>R-help at 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.




More information about the R-help mailing list