BookmarkSubscribeRSS Feed

Make the quoted string in the :Name() function an evaluated element

I would like the quoted string in the :Name() function to be an element that JMP evaluates, rather than just being a quoted string.  I would like the below script to work

names default to here(1);
dt=current data table();
thename="NPN1";

bivariate(x(:Name(thename)),y(:Pnp1))

Tracking Number:

Defect ID: S1517673

4 Comments
Super User

I agree this would make the syntax consistent.  Currently, I like to use, and train to use, the syntax, column(<dt,> "name") or column(thename), which I know Jim is aware of. Just adding a ditto to Jim's wish list item, and showing an alternative to those reading this on the blog.

Community Trekker

I like this idea, too. Another potentially acceptable option might be As Name(thename)?

Staff

Name is always intended as parse-time. There are plenty of ways to make the reference indirect, e.g. :

Open("$Sample_Data/Big Class.jmp");
theX = "weight"; theY = "height";
Bivariate(Y(eval(theY)),X(eval(theX)));
Community Manager
Status changed to: Declined