Hi,
I have added bunch of data tables (Combined data table, attached) and found out the column Y and SPC_Y are indeed the same variable (Name change during the test). So I need to combine these columns. I wrote the following script and the added column (Y+SPC_Y) is blank.
dt=current data table();
// Two Columns Name that are the same Y and SPC_Y
dt<<new column("Y+SPC_Y", continious);
for each row(:Name("Y+SPC_Y")=:Y+:SPC_Y);
dt<<delete column("SPC_Y");
dt<< delete column("Y");
dt:Name("Y+SPC_Y")<< set name("SPC_Y");
I appreciate your help. Thanks