可変数の列を使用してデータテーブルを結合するこんにちは - スクリプトの一部として結合を実行しようとしています。 ただし、「select」と「selectwith」の部分が混乱しています。 スクリプトの前半で、リンクされたデータ テーブルの列を動的に選択し、それらをリストとして「select」部分と「select with」部分に渡します。 Eval(Eval Expr(Expr())) を試しましたが、うまくいきませんでした。 この二人が実際に情報を受け取る方法を私が誤解しているだけだと思います。
Data Table(dt2b) << Join(
With(Data Table("Experimental Info")),
Match Flag(1),
Select(selectedCols1String),
SelectWith(selectedCols2String),
By Matching Columns(:ID = :ID),
Drop multiples(0, 0),
Include Nonmatches(0, 0),
Preserve main table order(1)
);selectedCols1String と selectedCols2String の出力は次のようになります: ":ID, :2Theta, :Data, :Error, :Raw Data, :Raw Error"
ありがとう!
自動化とスクリプト作成ウィンドウズRe: 可変数の列を使用してデータ テーブルを結合する文字列ではなくリストを使用してEvalを使用する必要があります
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Trial1.jmp");
dt2 = Open("$SAMPLE_DATA/Little.jmp");
select_cols = {"popcorn", "oil amt", "batch", "yield"};
with_cols = {"yield", "batch"};
dt3 = dt << Join(
With(dt2),
Select(Eval(select_cols)),
SelectWith(Eval(with_cols)),
By Matching Columns(:popcorn = :popcorn, :batch = :batch, :oil amt = :oil)
);
ここでは文字列のリストを使用していますが、リスト参照でも構いません。
もっと見る...
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Trial1.jmp");
dt2 = Open("$SAMPLE_DATA/Little.jmp");
select_cols = {:popcorn, :oil amt, :batch, :yield};
with_cols = {:yield, :batch};
dt3 = dt << Join(
With(dt2),
Select(Eval(select_cols)),
SelectWith(Eval(with_cols)),
By Matching Columns(:popcorn = :popcorn, :batch = :batch, :oil amt = :oil)
);
Re: 可変数の列を使用してデータ テーブルを結合するどうもありがとうございます!