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.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

How to Create a Subset Table of the Final Row of Data per Group

Hi!

Is there a way to automate the creation of a subset table such that this is the starting data table

GroupData1Data 2
A1A
A2T
A3C
B8F
B2R
C1E
C4G
C1O
C5E


And this is the subset table (the final row of each group)

GroupData1Data 2
A3C
B2R
C5E


Any help appreciated!  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to Create a Subset Table of the Final Row of Data per Group

I can see several ways to do this with JSL. Try this:

 

Names Default To Here( 1 );
dt = Current Data Table();
dt << Subset(
	Selected Columns( 0 ),
	Rows( dt << Get rows where( Col Max( Row(), :Group ) == Row()) )
);

 

View solution in original post

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

Re: How to Create a Subset Table of the Final Row of Data per Group

I can see several ways to do this with JSL. Try this:

 

Names Default To Here( 1 );
dt = Current Data Table();
dt << Subset(
	Selected Columns( 0 ),
	Rows( dt << Get rows where( Col Max( Row(), :Group ) == Row()) )
);

 

Recommended Articles