Login  Register

Repeat case equals VAR

Posted by Peter Spangler on Mar 28, 2013; 8:17pm
URL: http://spssx-discussion.165.s1.nabble.com/Repeat-case-equals-VAR-tp5719153.html

Dear SPSS Folk,

My data has 4 Columns. Each column has user IDs in Rows. Some of the IDs repeat between VAR1 to VAR3. I would like to assign the names of the variables to the cases for which that ID repeats.

   
VAR1 VAR2 VAR3 NEW_VAR
    1       2         3       VAR1, VAR2 
    0       1         0 

Any suggestions are greatly appreciated!