I have following binary variables:
var1 => Yes =1 / No = 0
var2 => Yes =1 / No = 0
var3 => Yes =1 / No = 0
var4 => Yes =1 / No = 0
var5 => Yes =1 / No = 0
How can I convert these five variables into single-item construct (Z) in rStudio/any other tool?