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
{{ message }}
Repository navigation
slice_*: argument n and prop can be negative for all but slice_sample? #6402
It seems that arguments n and prop are allowed to be negative (doc: If a negative value of n or prop is provided, ....) for all sample_* function except for slice_sample? Is that desired (yet undocumented?) behaviour, or an omission?
dplyr::slice_sample(iris, n=-1)
#> Error in `dplyr::slice_sample()`:#> ! `n` must be positive.``
Activity
Allow negative n/prop in slice_sample()
Allow negative n/prop in slice_sample() (#6405)