擴展選擇位置<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />我們可以在腳本指南中解決這個問題嗎?
//腳本指南第336頁
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
dt << 選擇其中( 年齡 < 15 & 性別 == "F" );
//或者
dt << 選擇其中( 年齡 == 14 );
dt << 擴展選擇其中( 性別 == "F" ); //什麼也沒做
//不在指南中,但在下面有效
等待(10);
dt << Select Where( sex == "F", Current Selection ("extend")); //擴充選擇
回覆:擴展選擇位置以下內容摘自《JMP 12.1 腳本編寫指南》第 340 頁,也包含在目前的線上文件中:
To select a row without deselecting a previously selected row, combine << Select Where with
<< Select Where and the current selection("extend") argument. This is an alternative to
using an OR statement.
dt << Select Where( age == 14 );
dt << Select Where( sex == "F", current selection("extend"));
希望有幫助!
溫迪