BookmarkSubscribe
Choose Language Hide Translation Bar

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.
0 Kudos
2 REPLIES 2
Highlighted
ms
Super User ms
Super User

Re: Adding alternate columns in a table with a script

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

Re: Adding alternate columns in a table with a script

Thanks, that worked.
0 Kudos