用于检测数据表中排除的行的 JMP 脚本?大家好,
请问,
JMP 脚本是否能够检测到数据表中排除的行并自动删除它们?
回复:JMP 脚本检测数据表中排除的行?选择行会更改表的状态,删除行也是如此,因此它是您的问题的静音点。但是,如果您有兴趣对这些行执行其他操作,我还建议您使用获取排除行功能。
ex_rows = dt << Get Excluded Rows;
回复:JMP 脚本检测数据表中排除的行?谢谢你,吉姆。
这就是我要找的。回复:JMP 脚本检测数据表中排除的行?这是直接取自 Scripting Index 的示例脚本
帮助==>脚本索引
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;