check_strata {splithalfr} | R Documentation |
Check whether two strata have the same structure
Description
Checks strata
against strata_left
. Each element of
strata_left
should also be present in strata
, be of a similar
type (data frame/tibble or list/vector), and be of similar size
(nrow
for data frames/tibbles or length
for
lists/vectors). Stops with an arror if any checks fail.
Usage
check_strata(strata_left, strata_right)
Arguments
strata_left |
(list) strata to check against |
strata_right |
(list) strata to check |
Value
None
See Also
Other splitting functions:
apply_split_indexes_to_strata()
,
apply_split_indexes_to_stratum()
,
get_split_indexes_from_strata()
,
get_split_indexes_from_stratum()
,
split_df()
,
split_strata()
,
split_stratum()
,
stratify()
Examples
check_strata(list(1 : 4), list(1 : 4))
[Package splithalfr version 2.2.2 Index]