你好。 我想创建一个脚本来创建一个新日志,其中包含按我想要的方式排列的可变数量的单向图。我尝试了多种方法,但无法弄清楚。有人能帮我吗?谢谢!
试图写这样的东西:
Hlist_MSG1 = "HList Box(( oneway_List[";
Hlist_MSG2 = "] << Report) << Clone Box, ( noz_stat[";
hlist_MSG3 = "] <<报告)[";
Hlist_MSG4 = "] << 克隆框)";
nw = 新窗口(名称,<<期刊,
vlb = V 列表框(
for(i=1, i<=n_Copies, i++,
evallist({Hlist_MSG1,
我;
Hlist_MSG2;
我;
Hlist_MSG3;
1;
Hlist_MSG4;
if(i
));
或者像这样:
HLIST_MSG_LST[i] = "HList Box((oneway_List[" || char(i) || "] << Report) << Clone Box, ( noz_stat[" || char(i) || "] <
subs_list = {};
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++,
评估(分析(替代(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>