cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
Tzu-Chun
Level III

Control indicator column options using JSL

Hi All,

 

If I would like to make a multi-response column into indicator columns, the Cols->Utilities->Make Indicator Columns provide column name and missing value options to construct desired columns. How should I contral those two options using JSL?Capture.JPG

I have an example from Scripting index

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Animals.jmp" );
dt << Make Indicator Columns( columns( {:season} ) );

However, there is no futher information to control those options.

 

Any ideas are appriciated : )

 

Best

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Control indicator column options using JSL

Typically, you can refer to the interactive functionality to find how to do this.  So in this case, just using the exactly same wording the options can be invoked

dt << Make Indicator Columns( columns( {:season} ), append column name(1), include missing(1) );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Control indicator column options using JSL

Typically, you can refer to the interactive functionality to find how to do this.  So in this case, just using the exactly same wording the options can be invoked

dt << Make Indicator Columns( columns( {:season} ), append column name(1), include missing(1) );
Jim
Tzu-Chun
Level III

Re: Control indicator column options using JSL

Hi Jim,

That works perfectly. Thank you for your prompt reply, it always helps.

Best