tm <- tplyr_meta(
rlang::quos(TRT01A, SEX, ETHNIC, RACE),
rlang::quos(TRT01A == "Placebo", TRT01A == "SEX", ETHNIC == "HISPANIC OR LATINO")
)
tm %>%
add_anti_join(
tplyr_meta(
rlang::quos(TRT01A, ETHNIC),
rlang::quos(TRT01A == "Placebo", ETHNIC == "HISPANIC OR LATINO")
),
on = rlang::quos(USUBJID)
)
Run the code above in your browser using DataLab