Description Usage Arguments Details Value Methods (by class)
Generate R
replicates with permutations of the rows or groups of a data frame.
1 2 3 4 5 6 7 |
data |
A data frame |
... |
Arguments passed to methods |
R |
The number of permutations to generate. |
stratify |
If |
If R
is greater than the total number of permutations,
only the total number of permutations is returned. Since the total number
of permutations is factorial(n)
, this will only happen if n
is small.
A data frame with R
rows and the following columns:
A list of resample
objects. Training sets.
A list of resample
objects. Test sets.
An integer vector of identifiers
data.frame
: Permute rows of a data frame.
grouped_df
: Permutes rows within each group in a grouped data frame
if stratify = TRUE
. Otherwise, permute the groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.