強制將報表嵌套在哪個數據表中。所以我試圖改變哪個數據表新的window()報告嵌套在下面,它似乎是基於報告中首先使用的數據表。 有沒有辦法強制這種嵌套?
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt << Bivariate(Y(:height), X(:weight));
dt_sum = dt << Summary(
Group( :age ),
Mean( :height ),
Mean( :weight ),
Freq( "None" ),
Weight( "None" )
);
//This will nest under dt_sum
new window("Summary First",
dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
dt << Bivariate(Y(:height), X(:weight)),
);
//This will nest under dt
new window("Main First",
dt << Bivariate(Y(:height), X(:weight)),
dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
);Re:強制將報表嵌套在哪個數據表下。我不知道是否有一種自然的方法可以做到這一點,但這裡有一個解決方法:從表中希望新表嵌套的(計算上便宜,最佳)報告開始,然後在需要時刪除此報告:
查看從您的代碼中復制的最後一段代碼中的更改:
//This will nest under dt_sum
new window("Summary First",
dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
dt << Bivariate(Y(:height), X(:weight)),
);
//This will now also nest under dt_sum
new window("Main First",
dist1 = dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
dt << Bivariate(Y(:height), X(:weight)),
dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
);
dist1 << deleteRe:強制將報表嵌套在哪個數據表下。另一種方法是使用sib prepend消息 - 但奇怪的是,我需要wait()語句來關閉它。嘗試使用wait()和不使用wait()來查看我的意思。
//This will now also nest under dt_sum
nw = new window("Main First",
rep1 = dt_sum << Distribution( Continuous Distribution( Column( :Name( "Mean(height)" ) ) ) ),
);
wait();
rep1 << Sib Prepend(
dt << Bivariate(Y(:height), X(:weight))
);