我有一个脚本,在 JMP 中打开一个 txt 文件作为数据表,然后将第 7 行中列出的列名称移动到列标题。 如何将其应用于多个数据表? 我当前的脚本不起作用。 我有JMP16。 谢谢。
dt_list = Multiple File Import(); //additional known text here to open files
table_script = expr(
//Move the column names listed in row 7 to the column headers
dt = Current Data Table();
dt << clear select;
dt << Clear Column Selection();
lastcol = N Col( dt );
header = 7;
For( i = 1, i <= lastcol, i++,
Column( i ) << set Name( Column(i)[header] )
);
);
Eval(
Eval Expr(
For Each( {value, index},
Expr( dt_list[index] << table_script )
)
)
);