I have several tables of just one variable. Table 1: MasterList A B C D E F G Table2: Var1 A B E G Table3: Var2: B C E F with the rest similar. With each table having some or all of the values in MasterList. I want to create a table with the variables (var1, var2, etc) as the observations, and the columns A, B,....,G from MasterList. where the observation has a value of 1 if it contains that element from MasterList, and 0 if it does not. Like so. A B C D E F G Var1 1 1 0 0 1 0 1 Var2 0 1 1 0 1 1 0 Var3 ... any help appreciated.
... View more