sample_n...: sample_n

Description Usage Arguments Details Value Author(s) See Also

View source: R/sample_n.R

Description

Grouping wrapper for sample_n

Usage

1

Arguments

...

parameters for dplyr::sample_n

Details

The wisegroup package provides a wrapper for sample_n that behaves as per the original with the added bonus of signalling returned data could be grouped in source code. This helps avoid mistakes associated with forgetting to call ungroup().

For original documentation see dplyr::sample_n().

Use wisegroup::sample_n() to automatically remove groups after applying dplyr::sample_n.

Value

an ungrouped dataframe

Author(s)

Miles McBain

See Also

dplyr::sample_n, sample_n...


MilesMcBain/wisegroup documentation built on Dec. 5, 2019, 2:03 a.m.