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?
dplyr1.1 has a new argumentmultiplein the join functions that, by default, throws a warning if a row inxmatches more than one row iny. You have to explicitly setmultiple="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 themultipleargument 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?