Description Usage Arguments Examples
Randomly draw n rows/elements from an object. Can be useful as an alternative to head(), tail() or ht(). May also be used to quickly draw random samples. Works with tibbles, too, but will return a data.frame in that case.
1 |
x |
An object |
n |
Single positive integer. The number of rows/elements to be randomly drawn. |
replace |
If TRUE draw with replacement. Default FALSE |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.