View source: R/derive_vars_cat.R
extend_condition | R Documentation |
This internal helper function extends a condition string by appending a new condition that checks if a variable equals a specific value.
extend_condition(cond, var, is)
cond |
A character string representing an existing condition. |
var |
A character string representing the name of the variable to check. |
is |
A character string representing the value the variable should be equal to. |
A character string representing the extended condition.
# Extend an existing condition to include a check for 'AGE == "30"'
admiral:::extend_condition("SEX == 'M'", "AGE", "30")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.