在列上循環以子集相同的行大家好
我想在我的腳本中添加一個部分,通過查看列中的每一行(都是數字)來創建子集,找到匹配的行並創建子集。並且對於特定值只執行一次。就像第一行是 200 一樣,創建子集後,當在循環中找到另一個 200 時,忽略它
我想知道在JMP中是否可行?
謝謝
自動化和腳本編寫回复:對列進行循環以對相同行進行子集化這是一種不同的方法,可能對您有用。它查找列中不同值的所有重複行,然後反轉選擇,最終成為該行中每個不同值找到的第一個值。然後它將這些行子集到一個新表中。
// Subset only the rows where each age appears for the first time
Names Default To Here( 1 );
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << select duplicate rows( Match( :age ) );
dt << invert row selection;
dtSub = dt << subset(
selected columns( 0 ),
selected rows( 1 ),
output table( "subset" )
);
回复:對列進行循環以對相同行進行子集化謝謝吉姆
我認為我沒有很好地解釋我想做的事情。 我希望與該值匹配的所有行都在 1 個子集中。該腳本為我提供了不同值的日落(:晶圓 ID),每個值 1 行。
基本上我希望每個晶圓 ID 的所有行都給我 1 個子集。該列具有不同的晶圓 ID
回复:對列進行循環以對相同行進行子集化如果您想要每個唯一值都有一個單獨的表
tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)tables->subset menu. Multiple tables are opened (see the tabs in this JMP 17 preview)表格->子菜單。 打開多個表(請參閱此 JMP 17 預覽中的選項卡)
這可能會同時打開很多桌子。 通常你不想這樣做;大多數 JMP 平台都具有經過將針對每個組運行平台的變量。 如果您確實需要單獨的表,請從子集表之一獲取 JSL 的源腳本;該腳本返回它打開的表的列表。 您可能還想要按列保存檢查過。
回复:對列進行循環以對相同行進行子集化謝謝,
我的專欄有很多特定的值,比如200已經重複了10次以上。如果我想使用匹配行,然後將其子集化,源腳本將為我提供所有行號。 我想要一個腳本來創建一個循環,為每個具有匹配行的單元格執行此操作。
回复:對列進行循環以對相同行進行子集化使用表格->摘要來獲取唯一值及其計數。 (您可以從中獲取生成匯總表的腳本。)在腳本中,讀取匯總表(使用對於每一行),獲取唯一值,然後選擇地點或者獲取行,其中在主桌上。 根據需要處理選擇。
這與之前的答案不會有很大不同,但除非您告訴它,否則它不會生成表格,並且您可以決定您關心的重複項數量。