在多選位置隱藏和排除你好,
我有一個在 for 循環中執行隱藏和排除的插件。 我觀察到的一件事是,先前的隱藏和排除被下一列條件覆蓋。 此外,我意識到它還覆蓋了我的手動隱藏和排除。 我有兩個問題:
1. 有沒有辦法連接多個選擇,然後執行整體隱藏和排除?
For( i = 1, i <= N Items( list_of_cols ), i++,
dt << select where( As Column( dt, list_of_cols [i] ) != "");
dt << hide and exclude;
)2. 有沒有辦法保持隱藏和排除在適當的位置(在前兩行中手動執行),並稍後在腳本中隱藏額外的行?
dt << select where( :Comment =="Exclude");
dt << hide and exclude;
For( i = 1, i <= N Items( list_of_cols), i++,
dt << select where( As Column( dt, list_of_cols[i] ) != "");
dt << hide and exclude;
)謝謝你!
自動化和腳本編寫基礎數據分析和建模數據存取數據探索和可視化回复:在多重選擇中隱藏和排除SelectWhere()函數能夠“擴展”或“限制”之前的SelectWhere。有關詳細信息,請參閱腳本索引。下面的示例展示瞭如何為您的應用程序執行此操作。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Where( :Age == 14 );
Wait( 0 );
dt << Select Where( :sex == "M", current selection( "extend" ) );
dt << hide and exclude;
此外,您可以在“隱藏和排除”中添加一個附加選項,僅強制選擇“打開隱藏和排除”
dt << Hide and Exclude(1);
For( i = 1, i <= N Items( list_of_cols ), i++,
dt << select where( As Column( dt, list_of_cols [i] ) != "");
dt << hide and exclude(1);
)回复:在多重選擇中隱藏和排除很高興知道!