안녕하세요 JMP 커뮤니티입니다.
JMP 16.1 / 윈도우 10 프로
나는 분명히 해결할 수 없는 단순한 문제가 있습니다. 다음 스크립트(작동하지 않음)에서 열 목록을 RESPONSE SCREENING 플랫폼에서 X 변수로 전달하려고 합니다. 연결된 문자열 변수를 사용하면 작동하지 않습니다. 따라서 열 목록(scol)을 RESPONSE SCREENING 플랫폼을 실행하기 위한 유효한 인수로 어떻게 변환합니까?
Names Default to Here (1);
dt = Data table ("MYTABLE");
scol = dt << Get Selected Columns;
rse = expr (dt << Response Screening(Y(:RESPONSE), X(_Xs_), PValues Table on Launch(0)));
X_string = "";
for (i = 1, i <= N Items (scol), i++,
Insert into (X_string, scol [i]);
if (i < N items (scol), Insert into (X_string, ","), Continue ());
);
show (X_string); // The column names are stripped of the preceding quotes and following n (my column names are complex and include special characters)
rsx = substitute (Name Expr (rse), Expr (_Xs_),X_string);
show (rsx);
rs = Eval (rsx); //Fails because of Bad X argument
rsr = Report (rs);
메모
올바른 구문은 다음과 같아야 합니다.
Response Screening(
Y( :RESPONSE ),
X(
:"X1_MOLECULE A [M_ID 001]"n, :"X2_MOLECULE B [M_ID 002]"n,
:"X3_MOLECULE A [M_ID 0056]"n
),
PValues Table on Launch( 0 )
)
감사.
최고,
TS