回复:使用代碼將本地數據過濾器添加到子集表命令如果您在 JMP 17 中使用過濾行選項計算子集表:

日誌將向您顯示腳本的外觀:
// Subset data table
// → Data Table( "Subset of Big Class 2" )
Data Table( "Big Class" ) << Subset(
Filtered Rows( :height >= 61 & :weight <= 98 ),
Selected columns only( 0 )
);
請注意,界面中包含的數據過濾器僅適用於 UI - JSL 僅需要過濾器生成的 where-clause。在 JMP 的早期版本中,執行類似操作的一種方法是在計算子集之前選擇行:
Data Table( "Big Class" ) << Select Where(:height >= 61 & :weight <= 98);
Data Table( "Big Class" ) << Subset(
Selected Rows( 1 ),
Selected columns only( 0 )
);
使用代碼將本地數據過濾器添加到子集表命令這是我編寫的用於創建帶有本地數據過濾器的子集表的代碼。 我得到一個表格,其中包含選定的列,但包含所有行,即本地過濾器不起作用。
Data Table("JoinedData140523") << Subset(
Selected columns only(0),
columns(
:age 2022, :"# of children"n, :Gender, :Nationality, :Religiosity,
:Education 3, :TOP YN, :TOP NoRelig YN
),
Local Data Filter(
Add Filter(
columns(:"Sevirity>3"n, :TOP total),
Where(:"Sevirity>3"n == "1" & :TOP total == "Yes") // Combine the filter conditions
)
)
);
有什麼建議麼?
內容組織數據混合和清理數據探索和可視化大規模定制