What you describe is almost the application case of Combine Columns with the setting Selected Columns are Indicator Columns.
But is will complain about the Nones.
To fix the issue, get rid of the None values - either via Recode or by just converting the columns to data type numeric:
dt = New Table( "test",
Add Rows( 5 ),
New Column( "H",
Character,
Set Values( {"None", "1", "0", "1", "1"} )
),
New Column( "S",
Character,
Set Values( {"1", "0", "1", "None", "1"} )
)
);
:H << Set Data Type( Numeric );
:S << Set Data Type( Numeric );
dt << Combine Columns(
columns( :H, :S ),
Column Name( "summary" ),
Delimiter( "," ),
Selected Columns are Indicator Columns( 1 )
);