こんにちは
「出力」列のスクリプト作成について助けを求めてください。
さまざまなイベントに割り当てられた Sr ID のリストがあり、LAB T0 イベントが特定のイベントと一致する結果の出力列が必要です

助けてもらう義務があるだろう。上のスクリーンショットの Excel ファイルを添付しました。
ありがとう
S
このようなデータテーブルが与えられた場合

JMPは、必要な出力を作成する手順を実行する際に、次のスクリプトをインタラクティブに提供しました
// 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 )
);
