Hi,
Trying to write my first ever script in JMP, would greatly appreciate some help.
I have 10 columns (lets say one, two, three, four, five, six , seven, eight, nine, ten) and a Total column.
and i need to add ten more column which calculates the percentage of the first ten columns. I cannot use column names because i have 150 columns actually and the column names are all different.
How do i get it to add a new column and everytime advance the column in the formula by 1
For example :
create new column col 11
fill with formula "col 1 / Total"
set name of column to 'pct_one'
create new column col 12
fill with formula "col 2 / Total"
set name of column to 'pct_two'
.
.
.
continue for 10 columns.
Thanks in advance!