JMP 脚本检测数据表中排除的行?大家好,
请问,
JMP 脚本是否能够检测数据表中排除的行并自动删除它们?
回复:JMP 脚本检测数据表中排除的行?选择行会更改表的状态,当然删除行也会更改表的状态,因此它是问题的静音点。但是,如果您有兴趣对这些行执行其他操作,我还建议使用“获取排除行”函数。
ex_rows = dt << Get Excluded Rows;
回复:JMP 脚本检测数据表中排除的行?谢谢你,吉姆。
这就是我正在寻找的。回复:JMP 脚本检测数据表中排除的行?这是直接取自脚本索引的示例脚本
帮助==>脚本索引
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Rows( [5, 7, 8, 10, 15] );
dt << Exclude( 1 );
dt << Clear Select;
Wait( 2 );
dt << Select Excluded;
// This line is added from the Delete Rows option in the Scripting Index
dt << Delete Rows;
所以你想要的实际脚本是
Names Default To Here( 1 );
dt = Current Data Table();
dt << Select Excluded;
dt << Delete Rows;