From tlumley at u.washington.edu  Tue Feb 17 18:30:53 2004
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Tue Feb 17 18:31:44 2004
Subject: [Rd] typo in help(names)? (PR#6594)
In-Reply-To: <20040217152438.BB509EB64@slim.kubism.ku.dk>
References: <20040217152438.BB509EB64@slim.kubism.ku.dk>
Message-ID: <Pine.A41.4.58.0402170930120.55412@homer34.u.washington.edu>

On Tue, 17 Feb 2004 weigand@mayo.edu wrote:

>
>      ## assign just one name
>      z <- 1:3
>      names(z)
>      # change just the name of the third element.
>      names(z)[2] <- "b"
>      z
>
> Should the second comment read "... second element."
> rather than "... third element."?
>

Yes. Or else [2] should read [3].

	-thomas


[Rd] typo in help(names)? (PR#6594)
Thomas Lumley