Given a data table that looks like this
JMP provided the following script as I interactively when through the steps to create your required output
// Clear row selection
Data Table( "Example File" ) << Clear Select;
// Data table summary
// → Data Table( "Subset of Untitled 9 By (Sr ID, Event)" )
Data Table( "Example File" ) << Summary(
Group( :Sr ID, :Event ),
Freq( "None" ),
Weight( "None" ),
Link to original data table( 0 )
);
// Select matching cells
Data Table( "Example File By (Sr ID, Event)" ) <<
Select Where( :Event == "LAB_T0" );
// Delete selected rows
Data Table( "Example File By (Sr ID, Event)" ) <<
Select Where( :Event == "LAB_T0" ) << Delete Rows;
// Delete column: N Rows
Data Table( "Example File By (Sr ID, Event)" ) << Delete Columns( :N Rows );
// Change column name: Event → Output
Data Table( "Example File By (Sr ID, Event)" ):Event << Set Name( "Output" );
// Update data tables
Data Table( "Example File" ) << Update(
With( Data Table( "Example File By (Sr ID, Event)" ) ),
Match Columns( :Sr ID = :Sr ID )
);
Jim