move[bot] commented on Jul 21, 2018, 9:58 PM UTC:
@kovla commented on Jul 12, 2018, 9:35 AM UTC:
I imagine that rename() of a column to a name that already exists in the tibble (in another column) should warrant at least a warning. Otherwise it can result in two indistinguishable variables, with same name and type:
x <- tibble(a = 1:3, b = 4:6, c = 7:9)
x %>% rename(b = c)
# A tibble: 3 x 3
a b b
<int> <int> <int>
1 1 4 7
2 2 5 8
3 3 6 9
This issue was moved by krlmlr from tidyverse/tibble#431.
This issue was moved by romainfrancois from tidyverse/dplyr#3723.
move[bot] commented on Jul 21, 2018, 9:58 PM UTC:
@kovla commented on Jul 12, 2018, 9:35 AM UTC:
I imagine that
rename()of a column to a name that already exists in the tibble (in another column) should warrant at least a warning. Otherwise it can result in two indistinguishable variables, with same name and type:This issue was moved by krlmlr from tidyverse/tibble#431.
This issue was moved by romainfrancois from tidyverse/dplyr#3723.