| split_strata | R Documentation |
Splits each element of strata into two parts. For more information
about splitting options, and an extensive list of examples, see
get_split_indexes_from_stratum.
split_strata(strata, ...)
strata |
(list) list of strata to split |
... |
Arguments passed on to
|
(list) A list with two elements, containing the first and second
split of strata.
Other splitting functions:
apply_split_indexes_to_strata(),
apply_split_indexes_to_stratum(),
check_strata(),
get_split_indexes_from_strata(),
get_split_indexes_from_stratum(),
split_df(),
split_stratum(),
stratify()
# Stratify a data frame, then split it odd-even
ds <- data.frame(condition = rep(c("a", "b"), each = 4), score = 1 : 8)
strata <- stratify(ds, ds$condition)
split_strata(strata, method = "odd_even")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.