[R] Extracting Header From Table

PLauren@genelogic.com PLauren at genelogic.com
Mon Aug 5 22:35:50 CEST 2002


Just what I wanted.

Thanks,
Peter.



|---------+---------------------------->
|         |           Thomas Lumley    |
|         |           <tlumley at u.washin|
|         |           gton.edu>        |
|         |                            |
|         |           08/05/02 04:26 PM|
|         |                            |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                                              |
  |       To:       PLauren at genelogic.com                                                                        |
  |       cc:       r-help at stat.math.ethz.ch                                                                     |
  |       Subject:  Re: [R] Extracting Header From Table                                                         |
  >--------------------------------------------------------------------------------------------------------------|




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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list