View source: R/Variable_relationships.R
is_crossed | R Documentation |
Given two variable names and a data.table, checks if the term1
is crossed with the term2
.
Two variables are at least partially crossed if at least some levels of term1
are paired
with multiple levels of term2
and vice verse. We consider partially crossed a sufficient
condition for crossed relationships here. In some cases, we care about fully crossed.
is_crossed(formula, data, only_full_crossed = F)
formula, |
term1 ~ term2 |
data |
data.frame with columns (minimally) |
only_fully_crossed |
= FALSE If TRUE, then will return TRUE only if the variables are fully crossed,
meaning that every level of |
TRUE or FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.