你好
請求有關編寫“輸出”(Output)列的腳本的幫助。
我有分配給不同事件的Sr ID列表,並且需要將LAB T0事件與特定事件匹配的結果輸出列

將不得不提供幫助。 我已經為上面的屏幕快照附加了excel文件。
謝謝
小號
給定一個看起來像這樣的數據表

在完成創建所需輸出的步驟時,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 )
);
