I have 5 variables and they take either a 1 or 0. I am trying to find which among those 5 variables are set to 1.
For example:
var_1 = 1
var_2 = 1
var_3 = 0
var_4 = 1
var_5 = 0
I am expecting to get var_1
, var_2
and var_4
as they are equal to 1.