Description Usage Arguments Examples
When collect()
is used on a resampled_df
, the virtual bootstrap groups
are made explicit.
1 2 |
x |
A |
... |
Not used. |
id |
Optional. A single character that specifies a name for a column
containing a sequence from |
original_id |
Optional. A single character that specifies a name for a column containing the original position of the bootstrapped row. |
1 2 3 4 5 6 7 8 9 10 11 | library(dplyr)
# virtual groups become real rows
collect(bootstrapify(iris, 5))
# add on the id column for an identifier per bootstrap
collect(bootstrapify(iris, 5), id = ".id")
# add on the original_id column to know which row this bootstrapped row
# originally came from
collect(bootstrapify(iris, 5), original_id = ".original_id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.