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
According to dplyr 1.0.9 slice() documentation "If n is greater than the number of rows in the group (or prop > 1), the result will be silently truncated to the group size." However this is not true if using group_by() and slice_sample().
Error in slice_sample(): ! Problem while computing indices. i The
error occurred in group 1: group = "a". Caused by error in sample.int(): ! cannot take a sample larger than the population when
'replace = FALSE' Run rlang::last_error() to see where the error
occurred.
The text was updated successfully, but these errors were encountered:
According to dplyr 1.0.9 slice() documentation "If n is greater than the number of rows in the group (or prop > 1), the result will be silently truncated to the group size." However this is not true if using group_by() and slice_sample().
The text was updated successfully, but these errors were encountered: