split_stratum | R Documentation |
Splits stratum
into two parts. For more information
about splitting options, and an extensive list of examples, see
get_split_indexes_from_stratum
.
split_stratum(stratum, ...)
stratum |
(data frame, tibble, list, or vector) Stratum to split; dataframes and tibbles are counted and split by row. All other data types are counted and split by element |
... |
Arguments passed on to
|
(list) List with two elements that contain each of the two parts of stratum split in two.
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_strata()
,
stratify()
# Split stratum odd-even
ds <- data.frame(condition = rep(c("a", "b"), each = 4), score = 1 : 8)
split_stratum(ds, method = "odd_even")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.