cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
mostarr
Level IV

Get Rows() not working

I have

row_nums = data << Get Rows Where( num(data:"Donor") == i & data:"A or B" == "A");
d_A_rows = data << Get Rows(row_nums);
Write(d_A_rows);

but it writes the row numbers still instead of the actual row content. Am I missing something?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Get Rows() not working

Hi,

 

You can do this:

 

row_nums = data << Get Rows Where( Num( data:"Donor" ) == i & data:"A or B" == "A" );

Write( data[row_nums, 0] );

Once you have the row numbers you need in row_nums, you can index the table (which I presumed is named data) directly using the syntax table[row,col]. In your case, row_nums are the rows you want, and 0 means to get all columns.

 

Cheers,

Brady

View solution in original post

2 REPLIES 2

Re: Get Rows() not working

Hi,

 

You can do this:

 

row_nums = data << Get Rows Where( Num( data:"Donor" ) == i & data:"A or B" == "A" );

Write( data[row_nums, 0] );

Once you have the row numbers you need in row_nums, you can index the table (which I presumed is named data) directly using the syntax table[row,col]. In your case, row_nums are the rows you want, and 0 means to get all columns.

 

Cheers,

Brady

mostarr
Level IV

Re: Get Rows() not working

Thank you. That works perfectly, and is very incisive in educating me about coordinate-indexing tables as well.

Recommended Articles