Some joins will allow a tibble to end up with two columns with identical names. Doing any sort of tidyselect operation on the tibble results in:
Error: Can't bind data because some arguments have the same name
However, there doesn't appear to be any way to remove the duplicated column. It seems to me that using select(-matches("duplicate name")) or select(-contains("duplicated name")) ought to work since they allow catching multiples. In addition, selecting based on the index should also work. If columns 100 and 101 have the same name, I should be able to select(-101) however these all result in the same Error: Can't bind data because some arguments have the same name
The text was updated successfully, but these errors were encountered:
jzadra commentedNov 15, 2019
Some joins will allow a tibble to end up with two columns with identical names. Doing any sort of tidyselect operation on the tibble results in:
Error: Can't bind data because some arguments have the same name
However, there doesn't appear to be any way to remove the duplicated column. It seems to me that using
select(-matches("duplicate name"))
orselect(-contains("duplicated name"))
ought to work since they allow catching multiples. In addition, selecting based on the index should also work. If columns 100 and 101 have the same name, I should be able toselect(-101)
however these all result in the sameError: Can't bind data because some arguments have the same name
The text was updated successfully, but these errors were encountered: