You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the data frame that I'm trying to check for duplicates has a column called n (ex. from dplyr::count() or dplyr::add_count(), then get_dupes() gets a bit confused in terms of the numbering. I believe this is because get_dupes() uses dplyr::count(), which adds a count column called "nn" instead of "n", but get_dupes() is still using n as the count column.
For example, in this toy example student 102 does not have a duplicate for subject = 1, yet get_dupes() is giving three duplicates instead of 2.
Great bug report! Thank you. Providing the source of the problem (dplyr::count() producing nn) and a reprex sure made this easy to fix. I think this is fixed but let me know if not.
If the data frame that I'm trying to check for duplicates has a column called n (ex. from
dplyr::count()
ordplyr::add_count()
, thenget_dupes()
gets a bit confused in terms of the numbering. I believe this is becauseget_dupes()
usesdplyr::count()
, which adds a count column called "nn" instead of "n", butget_dupes()
is still using n as the count column.For example, in this toy example student 102 does not have a duplicate for
subject = 1
, yetget_dupes()
is giving three duplicates instead of 2.The text was updated successfully, but these errors were encountered: