Hola @txnelson ,
Tengo un conjunto de datos con cerca de cien mil columnas, etiquetado como " PG1_1s_xxxxx "o" PG1_1US_xxxx ". Tengo la intención de apilar estas columnas por separado en dos tablas diferentes y continuar con mi análisis. Aquí hay una muestra de mi script que escribí para hacer lo mismo.
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 )}
)
)
);
Cuando ejecuto este script, solo crea la primera tabla apilada "PG1_1S", pero no la segunda. ¿Cómo modifico esto para crear en diferentes tablas apiladas?
Gracias
Disculpe la falta de claridad en mi pregunta. Me adheriré a las pautas como lo solicitó desde aquí después. Gracias por mencionarlo.
De inmediato, lo que veo es que no está borrando las selecciones de columnas antes de ninguno de los fragmentos de código donde selecciona las columnas que desea usar en el apilamiento. Probablemente sea una buena apuesta que no se hayan seleccionado columnas para el primer apilamiento, pero en el segundo apilamiento, todas las columnas seleccionadas del 1 apilamiento permanecen, y su segunda configuración de selección solo se agrega a las columnas que se seleccionaron del primer apilamiento