You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tidyr::separate should prevent duplicated column names #255
The example does not really separate anything, but just illustrates the problem of tidyr creating ansemantically invalid data-frame with a duplicated column name.
tidyr::separate should throw an error in such a case. Or at least overwrite the existing column while printing a warning.
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_0.5.0 purrr_0.2.2 readr_1.0.0 tidyr_0.6.0
[5] tibble_1.2 ggplot2_2.1.0 tidyverse_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 assertthat_0.1 R6_2.1.3 grid_3.3.1
[5] plyr_1.8.4 gtable_0.2.0 DBI_0.5-1 magrittr_1.5
[9] scales_0.4.0 stringi_1.1.1 tools_3.3.1 munsell_0.4.3
[13] colorspace_1.2-6
Activity
pkopps commentedon Oct 25, 2016
Having same issue with
gather(), not sure if I could be something differently