View source: R/compare_models.R
shuffle_group | R Documentation |
Shuffle the rows in a column
shuffle_group(dat, col_name)
dat |
a data frame containing |
col_name |
column name to shuffle |
dat
with the rows of col_name
shuffled
Courtney R Armour, armourc@umich.edu
## Not run:
set.seed(123)
df <- dplyr::tibble(
condition = c("a", "a", "b", "b"),
AUC = c(.2, 0.3, 0.8, 0.9)
)
shuffle_group(df, "condition")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.