cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP 19 is here! See the new features at jmp.com/new.
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
Choose Language Hide Translation Bar
hogi
Level XIII

robust column reference

After a few minutes coding with JSL, users wonder about strange objects like :sex in 

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

x = :sex

 

 

Expert users have some experience with such column references and use them all the time.
But what is :sex ? Is  dt:sex  more robust? Where do I find a documentation ?

Let's collect and share some insights.

my 5 cents:

10 REPLIES 10
hogi
Level XIII

Re: robust column reference

Take home message:

With the learning from 

myList2 = Eval List({Name Expr(As column(:name)),Name Expr(As column(:sex)),Name Expr(As column(:age))});

we can convert any list provided by JMP into a robust list of columns via

ColNames = dt << get column names;
colList = Transform Each({col}, ColNames, Name Expr(As Column (col)));

 

Recommended Articles