Tabulate オブジェクトを新しいデータ テーブルに作成するスクリプトを作成しようとして問題が発生しています。以下の両方の構文を試しましたが、どちらもテーブルを作成できません。私はこれを、より大きなワークフローの 1 つのステップとして使用しています。
t2 = tbl << Tabulate(
Add Table(
Column Table( Grouping Columns( :Treatment ) ),
Row Table(
Analysis Columns(
:"Attribute 1"n,
:"Attribute 2"n,
:"Attribute 3"n,
:"Attribute 4"n,
:"Attribute 5"n, :"Attribute 6"n,
:"Attribute 7"n, :"Attribute 8"n,
:"Attribute 9"n,
:"Attribute 10"n, :"Attribute 11"n
),
Statistics( Mean )
)
),
Local Data Filter(
Mode( Show( 0 ) ),
Add Filter( columns( :A or B), Where( :A or B == "A" ) )
),
)) << Make Into Data Table();
そして
t2 = tbl << Tabulate(
Add Table(
Column Table( Grouping Columns( :Treatment ) ),
Row Table(
Analysis Columns(
:"Attribute 1"n,
:"Attribute 2"n,
:"Attribute 3"n,
:"Attribute 4"n,
:"Attribute 5"n, :"Attribute 6"n,
:"Attribute 7"n, :"Attribute 8"n,
:"Attribute 9"n,
:"Attribute 10"n, :"Attribute 11"n
),
Statistics( Mean )
)
),
Local Data Filter(
Mode( Show( 0 ) ),
Add Filter( columns( :A or B), Where( :A or B == "A" ) )
),
));
Wait(1);
t2 << Make Into Data Table();
私はJMP 17.2を使用しています。
ふーん、面白いですね。
最初の例では、括弧をいくつか追加すると動作するはずです。括弧がないと、メッセージは Tabulate オブジェクトではなくテーブルに送信されます。
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
(dt << Tabulate(
Add Table(
Column Table( Analysis Columns( :height ) ),
Row Table( Grouping Columns( :sex ) )
)
)) << Make Into Data Table();
2 番目のオプションは機能するはずです。タイプミスがあるのでしょうか?
最も簡単な方法:
GUI を使用して、ログに移動して「コードを盗む」。
括弧を追加することで問題は解決しました。これらの問題はすべて単なるタイプミスによるものでした。ありがとうございます!