Ciao Comunità JMP,
JMP 16.1 / Windows 10 Pro
Ho un problema apparentemente semplice che non riesco a risolvere. Nello script seguente (che non funziona), sto tentando di passare un elenco di colonne nelle variabili X dalla piattaforma RESPONSE SCREENING. L'utilizzo di una variabile stringa concatenata non funziona. Quindi, come posso convertire l'elenco di colonne (scol) in un argomento valido per l'esecuzione della piattaforma 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);
APPUNTI
Ecco come dovrebbe apparire la sintassi corretta:
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 )
)
Grazie.
Migliore,
TS