在列上循环以子集相同的行大家好
我想在我的脚本中添加一个部分,通过查看列中的每一行(都是数字)来创建子集,找到匹配的行并创建子集。并且对于特定值只执行一次。就像第一行是 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)表格->子菜单。 打开多个表(请参阅此 JMP 17 预览中的选项卡)
这可能会同时打开很多桌子。 通常你不想这样做;大多数 JMP 平台都具有经过将针对每个组运行平台的变量。 如果您确实需要单独的表,请从子集表之一获取 JSL 的源脚本;该脚本返回它打开的表的列表。 您可能还想要按列保存检查过。
回复:对列进行循环以对相同行进行子集化谢谢,
我的专栏有很多特定的值,比如200已经重复了10次以上。如果我想使用匹配行,然后将其子集化,源脚本将为我提供所有行号。 我想要一个脚本来创建一个循环,为每个具有匹配行的单元格执行此操作。
回复:对列进行循环以对相同行进行子集化使用表格->摘要来获取唯一值及其计数。 (您可以从中获取生成汇总表的脚本。)在脚本中,读取汇总表(使用对于每一行),获取唯一值,然后选择地点或者获取行,其中在主桌上。 根据需要处理选择。
这与之前的答案不会有很大不同,但除非您告诉它,否则它不会生成表格,并且您可以决定您关心的重复项数量。