cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
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))));