Improve error message when pivot_longer()
is applied on data with a "name" column
#1494
Labels
pivot_longer()
is applied on data with a "name" column
#1494
Hi,
When you apply
pivot_longer()
on a dataframe that already has a column namedname
, the error message is confusing:Created on 2023-04-14 with reprex v2.0.2
Wouldn't it be possible to check if
data
has a column named likenames_to
and hint the user to usenames_to
to correct the problem instead ofnames_repair
which doesn't help much here?The text was updated successfully, but these errors were encountered: