Description Usage Arguments Value
Resample a Data Frame
1 | resample_df(df, size, replace = FALSE, prob = NULL)
|
df |
: a data frame |
size |
: a non-negative integer giving the number of items to choose. |
replace |
: should sampling be with replacement? |
prob |
: a vector of probability weights for obtaining the elements of the vector being sampled. |
a data frame containing the resampled rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.