powered by
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)
A character string representing the extended condition.
A character string representing an existing condition.
A character string representing the name of the variable to check.
A character string representing the value the variable should be equal to.
# Extend an existing condition to include a check for 'AGE == "30"' admiral:::extend_condition("SEX == 'M'", "AGE", "30")
Run the code above in your browser using DataLab