通過使用腳本比較與項目相關的多個參數來過濾行項目我附上了示例數據,我需要從中提取給定 PartID 產量最小的行。 我想使用腳本來做到這一點。
我需要為每個 PartID 執行此操作,然後有一個僅包含過濾行的表(即 [PartID]、[Parameter] [(min-) Yeild])。

請注意,我特意為 C 部分設置了相同的產量,因為我可能有類似的數據,並希望使用腳本處理此類問題。 我在 JMP13 上。
謝謝。
數據表腳本編寫視窗回复:通過使用腳本比較與項目相關的多個參數來過濾行項目這是處理您的請求的一種方法:
Names Default To Here( 1 );
dt = Current Data Table();
Summarize( dt, thePartID = by( :PartID ), theMin = Minimum( :Parameter ) );
dt << clear select;
For( i = 1, i <= N Items( thePartID ), i++,
dt << select where(
:PartID == thePartID[i] & :Parameter == theMin[i],
current selection( "extend" )
)
);
dtSelected = dt << subset( selected rows(1), selected columns(0));