Select and relocate work inconsistenly on an empty dataframe #6167
Labels
bug
an unexpected problem or unintended behavior
columns ↔️
Operations on columns: mutate(), select(), rename(), relocate()
I expect that trying to
relocate
a non-existing column withany_of
would return the original dataframe. Even if the dataframe is empty. The functionselect
seems to work more consistently withany_of
.My dplyr version is 1.0.7.
Created on 2022-01-28 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: