Message-ID: <Pine.A41.4.44.0208051326330.101274-100000@homer11.u.washington.edu>
Date: 2002-08-05T20:26:53Z
From: Thomas Lumley
Subject: Extracting Header From Table
In-Reply-To: <OFB96B1A2B.D00CCBA5-ON85256C0C.006E5DDF@genelogic.com>
On Mon, 5 Aug 2002 PLauren at genelogic.com wrote:
> I read a tab-delimited ASCII table, with a header, into R thus.
> Table <- read.table(FileName, header=TRUE, sep="\t");
>
> Is there any way I can now retrieve the header. The header information is
> obviously there since I see it, along with the values of the first row of
> data, when I type
> Table[1, ]
>
I think you want
names(Table)
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._