Subscribe Bookmark RSS Feed

Adding alternate columns in a table with a script

Hi Guys,

I have a JMP table with column1, column2, etc. and I want to add a column after every column. So I want to the table to look like column1, newcolumn1, column2, newcolumn2, etc. I know how to do that manually but how can I so this with a script?

Thanks.
2 REPLIES
ms

Super User

Joined:

Jun 23, 2011

I suggest that you use the command Add Multiple columns() in a for-loop.
For example...
=1,i--,col=column(i);
dt<-->
Thanks, that worked.