Choose Language Hide Translation Bar
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
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
Article Labels

    There are no labels assigned to this post.