powered by
Create a new variable which is true if any of the variables in a list of variables are true.
var_any(newvr, vrs)
Survey object
name of the new variable to be created
vector of logical variables
Other variables: var_all(), var_case(), var_collapse(), var_copy(), var_cross(), var_cut(), var_not()
var_all()
var_case()
var_collapse()
var_copy()
var_cross()
var_cut()
var_not()
set_survey(namcs2019sv) var_any("Imaging services" , c("ANYIMAGE", "BONEDENS", "CATSCAN", "ECHOCARD", "OTHULTRA" , "MAMMO", "MRI", "XRAY", "OTHIMAGE")) tab("Imaging services")
Run the code above in your browser using DataLab