Description Usage Arguments Value Examples
This method is a convenience short-cut to take samples from data frames. It results in a data frame the rows of which are a sample of the complete data frame.
1 2 |
x |
a data frame. |
size |
an (optional) numerical value, the sample size,
defaults to the total number of rows of |
replace |
a logical value, determines whether sampling takes place with or without replacement. |
prob |
a vector of sampling probabities or NULL. |
A data frame.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.