cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
bernie426
Level II

How can I only select odd raw?

I have table with over 300,000 of data point, how can I use the "formula-raw state" function to write a command to only select even/odd raws?

1 REPLY 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How can I only select odd raw?

// Select by script

Current Data Table() << select where( Mod( Row(), 2 ) );//select odd rows

Current Data Table() << select where( !Mod( Row(), 2 ) );//select even rows

// Or by column formula of Row State Column

Current Data Table() << New Column("Select Odd",Row State, set formula(Selected State(Mod(Row(),2))));