大家好,
我编写了一个代码来获取带有列联表工具信息的数据表,不幸的是,发出的表名为“Untitled xxx”。 我想知道通过编写脚本是否可以选择最后创建的表并更改其名称,或者选择名称中包含 Untitled 的表,最后重命名它?
目标是在脚本每次启动时关闭表以避免拥有多个表。
我尝试使用当前数据表()函数,但它无法正常工作(选择了另一个表)。
代码部分:
Contingency(
Y( :"Pass/Fail"n ),
X( :Task ),
Contingency Table(
Count( 1, Format( "Fixed Dec", 2, 0 ) ),
Total %( 1, Format( "Fixed Dec", 2, 2 ) ),
Col %( 1, Format( "Fixed Dec", 2, 2 ) ),
Row %( 1, Format( "Fixed Dec", 2, 2 ) ),
Expected( 0, Format( "Best", 3 ) ),
Deviation( 0, Format( "Best", 3 ) ),
Cell Chi Square( 0, Format( "Fixed Dec", 2, 4 ) ),
Col cumulative( 0, Format( "Fixed Dec", 2, 0 ) ),
Col cumulative %( 0, Format( "Fixed Dec", 2, 2 ) ),
Row cumulative( 0, Format( "Fixed Dec", 2, 0 ) ),
Row cumulative %( 0, Format( "Fixed Dec", 2, 2 ) )
),
Mosaic Plot( 0 ),
Make Into Data Table,
);
谢谢 !
此致