apply_split_indexes_to_stratum | R Documentation |
Splits stratum
into two parts based on a list of indexes. For more information
about splitting options, and an extensive list of examples, see
get_split_indexes_from_stratum
.
apply_split_indexes_to_stratum(stratum, indexes_1, indexes_2)
stratum |
(data frame, tibble, list, or vector) stratum to split |
indexes_1 |
(vector) indexes for first split, which can be generated via |
indexes_2 |
(vector) indexes for second split, which can be generated via |
(list) List with two elements that contain stratum split in two parts.
Other splitting functions:
apply_split_indexes_to_strata()
,
check_strata()
,
get_split_indexes_from_strata()
,
get_split_indexes_from_stratum()
,
split_df()
,
split_strata()
,
split_stratum()
,
stratify()
# Random split-half. One of the splits gets 4 elements and the other 5
stratum = letters[1:9]
indexes = get_split_indexes_from_stratum(stratum)
apply_split_indexes_to_stratum(stratum, indexes[[1]], indexes[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.