如何使用“用户输入”来确定要处理的列?大家好,
我能够连续运行脚本并在输出文件夹中获得我想要的内容。
有时候我遇到了糟糕的数据集,我必须在原始数据文件中手动消除。我使用了大量的数据过滤器,通过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 :
请提供样本数据+您的脚本,并举例说明您的需求。
有没有办法在脚本中停止文件处理 - 是的,但不知道你正在处理的条件是什么 - 很难提供任何帮助。
最好
乌代