[R] accessing header information in a table

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.ac.be
Tue Apr 5 15:52:38 CEST 2005


Look at "?names()", "?colnames()", e.g. check

names(myTable)

I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm



----- Original Message ----- 
From: "Jabez Wilson" <jabezwuk at yahoo.co.uk>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, April 05, 2005 3:41 PM
Subject: [R] accessing header information in a table


>
> Dear list, I have read an excel table into R using read.table() and 
> headers=T. The table is 7 columns of figures. Is there any way to 
> gain access to the header information? Say the table headers are 
> Mon, Tue etc I can get to the data with myTable$Tue, but how do I 
> get the headers themselves.
>
> TIA
>
> Jab
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list