Skip to content

Is it possible to set an option to globally turn off the multiple matches warning on joins? #6717

Description

@eipi10

dplyr 1.1 has a new argument multiple in the join functions that, by default, throws a warning if a row in x matches more than one row in y. You have to explicitly set multiple="all" in every join in order to silence the warning. According to the help, this default was chosen because multiple matches are "usually surprising." In the data I work with (education) multiple matches are the norm (students attend in multiple terms and take multiple courses in each term; instructors have multiple students, teach more than one course and perhaps multiple sections of a course, etc.). The constant warnings are really annoying, but it would likewise be annoying to have to explicitly set the multiple argument every time I do a join (including many, many joins across existing functions in our internal packages that would need to be updated).

Ideally, the default would be not to warn. If you're not open to that change, is there any way to set an option at the top of a script that disables warnings related to multiple matches, and, if not, would you be willing to add such an option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions