cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Extend Select Where

msharp
Super User (Alumni)

Can we get this fixed in the Scripting Guide?

//Scripting Guide page 336

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

dt << Select Where( age < 15 & sex == "F" );

//or

dt << Select Where( age == 14 );

dt << Extend Select Where( sex == "F" ); //does nothing

//Not in guide, but below works

wait(10);

dt << Select Where( sex == "F", Current Selection ("extend")); //extends selection

1 REPLY 1


Re: Extend Select Where

The following is from page 340 in the JMP 12.1 Scripting Guide and is also included in the current online documentation:


To select a row without deselecting a previously selected row, combine << Select Where with


<< Select Where and the current selection("extend") argument. This is an alternative to


using an OR statement.


dt << Select Where( age == 14 );


dt << Select Where( sex == "F", current selection("extend"));


Hope that helps!

Wendy

Wendy