dplyr error: column must have a unique name

In rare cases, the data source may contain multiple columns with the same name, and some of the next actions with dplyr functions might result in the error “column must have unique name”.

Here is a data frame with columns that have the same name.

If I want to group and summarize something, I get this error.

To move one, you have to rename some of the data frame columns.

In large data frames, a summary of data frame column names might be handy.

0 comments on “dplyr error: column must have a unique name

Leave a Reply

Your email address will not be published. Required fields are marked *