R programmers use data.frames for pretty much everything and yet sample() doesn't have a data.frame method, thus ruining the only base R function with sensible parameter names. Argh.
| 1 | sample_dataframe(x, size, replace = FALSE)
 | 
| x | a data.frame | 
| size | the size of the sample | 
| replace | whether to sample with replacement; FALSE by default. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.