Hi,
beginner JMP user here,
I would like to create a new column "Tag Range" which has the formula in it "Tag.ULIMIT-Tag.LLIMIT".
Tag.ULIMIT and Tag.LLIMIT are columns in my data table.
I can create the column by explicitly defining the column names in the formula as below, but I would like to replace these with the variables "UpperLIMIT" and "LowerLIMIT".
(ultimately, I would like to run a script that creates this column based on the tag name selected by the user)
Names Default To Here( 1 );
a = "Tag";
UpperLIMIT = a || ".ULIMIT";
LowerLIMIT = a || ".LLIMIT";
dt = Current Data Table();
This works:
dt << New Column( a || " Range", formula( :Tag.ULIMIT - :Tag.LLIMIT ) );
this doesn;t work:
dt << New Column( a || " Range", formula( :UpperLIMIT - :LowerLIMIT ) );