こんにちは @txnelson 、
「」というラベルが付けられた10万列近くのデータセットがあります。 PG1_1s_xxxxx 「または」 PG1_1US_xxxx 」 これらの列を別々に2つの異なるテーブルに積み上げて、分析を続けるつもりです。これは、私が同じことをするために書いた私のスクリプトのサンプルです。
dt = current data table();
colList = dt << Get Column Names( Numeric, "Continuous" );
For( i = 1, i <= N Items( colList ), i++,
If( Contains( colList[i], "PG1_1S_" ) &
Contains( colList[i], "MED" )
Column( colList[i] ) << Set Selected( 1 )
)
);
dt << Stack(
column(dt << get selected columns()),
Source Label Column("Label"),
Stacked Data Column("RBER"),
Name("Non-stacked Columns")(Keep(::LOT, :SLOT, :ROW, :COL, :JOB_NAME)),
Output table("PG1_1S"));
Data table("PG1_1S") << Graph Builder(
Variables( X( :V ), Y( :RBER ), Group X( :Deck ), Overlay( :JOB_NAME ) ),
Elements( Line( X, Y, Legend( 6 ) ) ),
Local Data Filter( Add Filter( columns( :Type ) ) ),
SendToReport(
Dispatch(
{},
"RBER",
ScaleBox,
{Scale( "Log" ), Format( "Scientific", 12, 0 ),
Min( 0.0000000027082467925 ), Max( 1.02000000009481 ), Inc( 1 ),
Minor Ticks( 0 )}
)
)
);
<BR /><STRONG>// Creating the second stacked table.</STRONG>
colList = dt << Get Column Names( Numeric, "Continuous" );
For( i = 1, i <= N Items( colList ), i++,
If( Contains( colList[i], "PG1_1US_" ) &
Contains( colList[i], "MED" )
Column( colList[i] ) << Set Selected( 1 )
)
);
dt << Stack(
column(dt << get selected columns()),
Source Label Column("Label"),
Stacked Data Column("RBER"),
Name("Non-stacked Columns")(Keep(::LOT, :SLOT, :ROW, :COL, :JOB_NAME)),
Output table("PG1_1US"));
Data table("PG1_1US") << Graph Builder(
Variables( X( :V ), Y( :RBER ), Group X( :Deck ), Overlay( :JOB_NAME ) ),
Elements( Line( X, Y, Legend( 6 ) ) ),
Local Data Filter( Add Filter( columns( :Type ) ) ),
SendToReport(
Dispatch(
{},
"RBER",
ScaleBox,
{Scale( "Log" ), Format( "Scientific", 12, 0 ),
Min( 0.0000000027082467925 ), Max( 1.02000000009481 ), Inc( 1 ),
Minor Ticks( 0 )}
)
)
);
このスクリプトを実行すると、最初のスタックテーブル「PG1_1S」のみが作成され、2番目のテーブルは作成されません。これを変更して、別のスタックテーブルを作成するにはどうすればよいですか。
ありがとう
私の質問が明確ではなかったことをお詫びします。後ほどご要望いただいたガイドラインを遵守させていただきます。指摘してくれてありがとう。
手元にあるのは、スタッキングで使用する列を選択するコード部分の前に列の選択をクリアしていないことです。 最初のスタッキングで列が選択されていないことはおそらくかなり良いことですが、2番目のスタッキングでは、1つのスタッキングから選択されたすべての列が残り、2番目の選択設定は、最初のスタッキング。