good catch. you can also get access to both colnames and rownames by dimnames().
On Apr 5, 2005 9:57 AM, Jabez Wilson <[EMAIL PROTECTED]> wrote:
> thank you for your replies
>
> what I really wanted was the individual names, but I think I can get them with
>
> colnames(myTable)[x]
>
> where x i
thank you for your replies
what I really wanted was the individual names, but I think I can get them with
colnames(myTable)[x]
where x is 1:7
Send instant messages to your online friends http://uk.messenger.yahoo.com
[[alternative HTML version deleted]]
__
x: +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" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, April 05, 2005 3:41 PM
Subject: [R] accessing header information in a tab
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.
T