- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Extend Select Where
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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