how to get a sum of all columns with names stored in a list
I have create a list of column containing roughly the same name below: Xlist = {};
Ylist = {};
for(i = 1, i < ncols(dt2), i++,
if(
contains(dt2:i<< get name, "XXX") > 0, insert into(Xlist, dt2:i<< get name),
contains(dt2:i<< get name, "YYY") > 0, insert into(Ylist, dt2:i<< get name),
)
); I would like to create a new column as below which will give me a sum of the Xcolumn and Ycolumn. It is not ...
nlc4