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 )
)
)
);