BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
Tzu-Chun

Community Trekker

Joined:

Oct 25, 2017

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

Joined:

Jun 22, 2012

Solution

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
2 REPLIES 2
txnelson

Super User

Joined:

Jun 22, 2012

Solution

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
Highlighted
Tzu-Chun

Community Trekker

Joined:

Oct 25, 2017

Re: Control indicator column options using JSL

Hi Jim,

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

Best