Skip to content

Matrix Header Name Select

4 messages · Rantony, Özgür Asar

#
Hi,

i have a matrix with headers. How can i get header name in that marix ?
i tried in R, with 
names(MyMatrix[1]) - its getting exactly.

But when i try in eclips, its not receiving
ColHdr <- names(MyMatrix[1])
- it getting NULL value

- could you please help me ?

- Thanks
Antony.

--
View this message in context: http://r.789695.n4.nabble.com/Matrix-Header-Name-Select-tp4631682.html
Sent from the R help mailing list archive at Nabble.com.
#
Hi,

You can try:

colnames(mymatrix)<-NULL

Best
Ozgur

-----
************************************
Ozgur ASAR

Research Assistant
Middle East Technical University
Department of Statistics
06531, Ankara Turkey
Ph: 90-312-2105309
http://www.stat.metu.edu.tr/people/assistants/ozgur/
--
View this message in context: http://r.789695.n4.nabble.com/Matrix-Header-Name-Select-tp4631682p4631683.html
Sent from the R help mailing list archive at Nabble.com.
#
Sorry, I misunderstood your question.

colnames(mymatrix) 

would select column names of your matrix.

Best
ozgur

-----
************************************
Ozgur ASAR

Research Assistant
Middle East Technical University
Department of Statistics
06531, Ankara Turkey
Ph: 90-312-2105309
http://www.stat.metu.edu.tr/people/assistants/ozgur/
--
View this message in context: http://r.789695.n4.nabble.com/Matrix-Header-Name-Select-tp4631682p4631684.html
Sent from the R help mailing list archive at Nabble.com.