Description Usage Arguments Details Value Author(s) See Also
Ungrouping wrapper for sample_n
1 |
... |
parameters for dplyr::sample_n |
The wisegroup package provides a wrapper for sample_n that always returns ungrouped data. This avoids mistakes associated with forgetting to call ungroup().
For original documentation see dplyr::sample_n()
.
Use sample_n...()
to retain groups as per dplyr::sample_n
, whilst
signalling this in your code.
an ungrouped dataframe
Miles McBain
dplyr::sample_n, sample_n...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.