View source: R/sample_n_or_bust.R
Sample a dataframe for n obs and returns full dataframe if n > nrow
1 | sample_n_or_bust(dataframe, n, ...)
|
n |
number of observations |
... |
additional arguments for dplyr::sample_n function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.