你好。 我想建立一個腳本來建立一個新日記,其中包含按我想要的方式排列的可變數量的單向圖。我嘗試了多種方法,但無法弄清楚。有人能幫我嗎?謝謝!
試著寫這樣的東西:
Hlist_MSG1 = "HList 框(( oneway_List[";
Hlist_MSG2 = "] << 報告) << 克隆框, ( noz_stat[";
Hlist_MSG3 = "] <<報告)[";
Hlist_MSG4 = "] << 克隆框)";
nw = 新視窗(姓名, <<期刊,
vlb = V 列錶框(
for(i=1, i<=n_Copies, i++,
評估列表({Hlist_MSG1,
我;
Hlist_MSG2;
我;
Hlist_MSG3;
1;
Hlist_MSG4;
if(i
));
或者像這樣:
HLIST_MSG_LST[i] = "HList Box(( oneway_List[" || char(i) || "] << 報告) << 克隆框, ( noz_stat[" || char(i) || "] <<報告) [1] << 克隆盒)");
子列表 = {};
for(i=1, i<=n_Copies, i++, subs_list [i] = "num("||char(i)||")");
num_list = {};
for(i=1, i<=n_Copies, i++, num_list [i] = i);
nw = 新視窗(姓名, <<期刊,
vlb = V 列錶框(
for(i=1, i<=n_Copies, i++,
eval(解析(替代(HLIST_MSG_LST[i],subs_list[i],num_list[i])));
if(i
));
沒關係,它很容易實現,所以我不需要等到下週看看它是否有效。
有用。
謝謝你!!
謝謝吉姆,我要到下週才能嘗試實施這個,所以我會更新。但這看起來應該對我有幫助。
我發現這是一種更容易建立輸出的方法。我相信它會滿足您想要做的事情,但它使用起來更簡單,也更容易遵循。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );
// Create some structures to hold the results
mainBox = V List Box();
theHBox = H List Box();
// Get the column names for the analysis
colList = dt << Get Column Names( continuous );
// Loop across the columns and generate the analyis, placing
// 4 analyses into an H List Box(), and then when all 4 are
// in the H List Box(), add it to the main V List Box();
For( i = 1, i <= 25, i++,
theHBox << Append( oneway( y( colList[i] ), x( :Site ) ) );
If( Mod( i, 4 ) == 0 | i == 25,
mainBox << Append( theHBox );
theHBox = H List Box();
);
);
// Now create the journal to hold all of the results
nw = New Window( "Results", <<JOURNAL></JOURNAL>