Subscribe Bookmark RSS Feed

Extend Select Where

msharp

Super User

Joined:

Jul 28, 2015

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
Wendy_Murphrey

Joined:

Jun 23, 2011

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