資料の 英語版 に戻る

matrixnode プロパティー

最終更新: 2025年2月11日
matrixnode プロパティー

行列ノードのアイコンクロス集計ノードで、フィールド間の関係を示すテーブルを作成します。 これは、通常、2 つのシンボル値フィールドの間の関係を示すために使用されますが、フラグ型フィールドまたは数値フィールドの間の関係を示すこともできます。

stream = modeler.script.stream()
sourcenode = stream.findByID("id46WRP1285C")
node = stream.create("matrix", "My node")
# "Settings" tab
node.setPropertyValue("fields", "Numerics")
node.setPropertyValue("row", "K")
node.setPropertyValue("column", "Na")
node.setPropertyValue("cell_contents", "Function")
node.setPropertyValue("function_field", "Age")
node.setPropertyValue("function", "Sum")
# "Appearance" tab
node.setPropertyValue("sort_mode", "Ascending")
node.setPropertyValue("highlight_top", 1)
node.setPropertyValue("highlight_bottom", 5)
node.setPropertyValue("display", ["Counts", "Expected", "Residuals"])
node.setPropertyValue("include_totals", True)

stream.link(sourcenode, node)
表 1. matrixnode プロパティー
matrixnodeプロパティー データ・タイプ プロパティーの説明
fields Selected Flags Numerics  
row フィールド  
column フィールド  
include_missing_values フラグ ユーザーによる欠損値 (空白) とシステムによる欠損値 (ヌル) が、行と列の出力に含まれるかどうかを指定します。
cell_contents CrossTabs Function  
function_field string  
function Sum Mean Min Max SDev  
sort_mode Unsorted Ascending Descending  
highlight_top 数値 ゼロでない場合に真 (true) 。
highlight_bottom 数値 ゼロでない場合に真 (true) 。
display [Counts Expected Residuals RowPct ColumnPct TotalPct]  
include_totals フラグ  
use_output_name フラグ ユーザー設定の出力名が使用されるかどうかを指定します。
output_name string use_output_nameが true の場合、使用する名前を指定します。
output_mode Screen File 出力ノードから生成される出力の、出力先を指定します。
output_format Formatted (.tab) Delimited (.csv) HTML (.html) Output (.Omc) 出力のタイプを指定します。 FormattedDelimitedの両方の形式で、修飾子transposedを使用できます。これにより、表の行と列が入れ替わります。
paginate_output フラグ output_formatHTMLの場合、出力はページに分割されます。
lines_per_page 数値 paginate_outputと一緒に使用する場合、出力のページ当たり行数を指定します。
full_filename string