[Rd] Data frame printing buglet when multiple empty column names

Hadley Wickham h.wickham at gmail.com
Tue Mar 1 16:12:00 CET 2016


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



More information about the R-devel mailing list