View source: R/tsqca_helpers.R
| format_qca_term | R Documentation |
Inserts * between variables in a term where it may have been omitted.
format_qca_term(term, var_names, use_tilde = TRUE)
term |
Character. A single term (e.g., "KSPRVT" or "~KPR*PRD"). |
var_names |
Character vector. Variable names used in the analysis. |
use_tilde |
Logical. If TRUE, negation is represented as |
Character. The formatted term with * between all variables.
var_names <- c("KSP", "KPR", "PRD", "RVT", "RCM")
format_qca_term("KSPRVTRCM", var_names)
# Returns: "KSP*RVT*RCM"
format_qca_term("~KPRPRD", var_names)
# Returns: "~KPR*PRD"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.