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

Thomas Lumley tlumley at u.washington.edu
Tue Feb 17 18:30:53 MET 2004


On Tue, 17 Feb 2004 weigand at 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



More information about the R-devel mailing list