Hi,
I am trying to combine only the columns in Data table "dtPatList" which contain the substring "INIT" in their name, but it doesn't work.
I understand that the problem related to the parameter I bolded below. could someone advise for the right way?
Thanks!!
// get the dt cols names
nc = ncols(dtPatList);
// get the dt cols names
col_list = dtPatList << get column names(string);
for (i = nitems(col_list), i > 0, i--,
if (!contains(col_list[i], "INIT")), /// new ps columns
remove from(col_list, i);
)
);
//Combine init cols
dtPatList << Combine Columns(
delimiter( "_" ),
Columns(col_list),
Selected Columns are Indicator Columns( 0 ),
Column Name( "INIT_Chain" )
);