如何使用“用戶輸入”來確定要處理的列?大家好,
我能夠連續運行腳本並在輸出文件夾中獲得我想要的內容。
有時候我遇到了糟糕的數據集,我必須在原始數據文件中手動消除。我使用了大量的數據過濾器,通過FOR循環遍歷它。
有沒有辦法運行,數據過濾器框凍結,我可以選擇我想要的,然後腳本繼續?
如果您還有其他建議也可以讓它變得更容易,那就太好了。
謝謝。我非常感謝你的時間和精力。
Re:如何使用'用戶輸入'來確定要處理的列?如果你能提供更多細節,肯定會幫助人們提出更好的建議。
從稍微粗略的描述推斷,也許下面的代碼可能有助於你開始;
NamesDefaultToHere(1);
// Sample data
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Show the global data filter
win = NewWindow("Filter the Data Before Continuing", << Modal,
dt << DataFilter(Mode( Show( 1 ), Include( 1 ) )),
ButtonBox("OK", win << closeWindow)
);
// Using a modal window means that the code below will not be executed until the data filter is set by hand
dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);
Re:如何使用'用戶輸入'來確定要處理的列? @vishwasanj :
請提供樣本數據+您的腳本,並舉例說明您的需求。
有沒有辦法在腳本中停止文件處理 - 是的,但不知道你正在處理的條件是什麼 - 很難提供任何幫助。
最好
烏代