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
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.``
The text was updated successfully, but these errors were encountered:
It seems that arguments
n
andprop
are allowed to be negative (doc: If a negative value of n or prop is provided, ....) for allsample_*
function except forslice_sample
? Is that desired (yet undocumented?) behaviour, or an omission?The text was updated successfully, but these errors were encountered: