On Tue, Mar 1, 2016 at 12:48 PM, Martin Maechler
wrote:
>> Hadley Wickham
>> on Tue, 1 Mar 2016 09:12:00 -0600 writes:
>
> > This is admittedly minor, and you shouldn't have repeated names in a
> > data frame anyway, but:
>
> > df <- data.frame(1:3, 1:3, 1:3)
>
> > # O
> Hadley Wickham
> on Tue, 1 Mar 2016 09:12:00 -0600 writes:
> This is admittedly minor, and you shouldn't have repeated names in a
> data frame anyway, but:
> df <- data.frame(1:3, 1:3, 1:3)
> # Ok
> setNames(df, c("x", "y", ""))
> # Not ok
> setNames(d
This is admittedly minor, and you shouldn't have repeated names in a
data frame anyway, but:
df <- data.frame(1:3, 1:3, 1:3)
# Ok
setNames(df, c("x", "y", ""))
# Not ok
setNames(df, c("x", "", ""))
Hadley
--
http://hadley.nz
__
R-devel@r-project.or