Re: [R] question regarding names() value assignment

Alex Buerkle (cbuerkle@bio.indiana.edu)
Tue, 29 Jun 1999 15:43:42 -0500 (EST)

Date: Tue, 29 Jun 1999 15:43:42 -0500 (EST)
From: Alex Buerkle <cbuerkle@bio.indiana.edu>
To: r-help@stat.math.ethz.ch
Subject: Re: [R] question regarding names() value assignment
In-Reply-To: <Pine.GSO.4.10.9906291312430.5997-100000@wompom.biostat.washington.edu>

Many thanks, that did it.

Alex

On Tue, 29 Jun 1999, Thomas Lumley wrote:

> > > names(tmp[2])
> > [1] "again"
> >
> > Can anyone explain this behavior to me?
>
> tmp[2] is a copy of the second column of tmp. You change the name on this
> copy, which is then discarded.
>
> You mean
>
> names(tmp)[2]<-"again"
>
>
> Thomas Lumley
> Assistant Professor, Biostatistics
> University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.