你好。我已經保存了一些在執行異常分析時想要使用的腳本。這些是健身模型腳本,我希望每次使用循環隱藏和排除值時都運行1個腳本。但是,我已按列名命名了腳本。因此,我希望腳本名稱與列名稱匹配並僅運行該腳本。我考慮了Linnerud示例數據的示例。
dt = current data table();
col = dt << get column names( string );
nc = N Items( col );
For( i = 1, i <= nc, i++,
If( Contains( ColNames[i], "Outlier" ),
Col1 = Column(dt,i);
max = data table(dt);
max << select where(as column(Col1)==abs(Col Max( Col1 ))) << Hide and Exclude;
//Hide and exclude the MAX val from Outlier 1 Rest Pulse, and Run Outlier 1 Rest Pulse script
//Run Script("Outlier 1 Rest Pulse");
)
);這可能嗎?