Hi. I'm looking for a scripting method to efficiently change the column names in my table to names I have contained in a list, without using a for loop. Is there an operator or function that can perform this? I'm thinking something like: dt << Set Column Names(newcolname_lis)?
With a for loop, I can do it this way:
col_lis = dt << Get Column Names("String"); For(i=1, i<=NItems(col_lis), i++, dt:i << Set Name(newname_lis[i]); );
But, my tables can contain > 20k columns, and this takes several minutes. Any ideas on speeding this up?
I do not see a different method in the renaming of the column names. However, I like your idea of being able to do that. You need to add your idea to the JMP Wish List.