我翻遍了論壇,沒有看到這個貼文。我想添加資料表中大於特定值的所有值,以作為缺失值代碼包含在內。我想到的方法是迭代地定義列表中的所有這些值,然後將該列表新增到迭代中,如下所示。
Column( dt, colNames[i] ) << set property ("Missing Value Codes", {999, -999, 1e+13, 1.5e13, 2e+13, 3e+13, 4e+13, 5e+13, 6e+13, 1e+30, 2e+30, 3e+30, -5.5e+29, 9e+33});
有人能弄清楚這一點嗎?如果沒有,我會解決一些問題並將其發布。
在我們得到這個之前,你必須使用你所描述的東西
允許在缺失值程式碼中使用限製或提供具有相同功能的新列屬性
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
limit = 55;
m = dt[0, "height"];
high_rows = Loc(m > 55);
Column(dt, "height") << Set Property("Missing Value Codes", As List(m[high_rows]));
Write();Added an iterative loop and colouring for the eliminated cells off to the races.
Names Default To Here(1);
dt = Current Data Table();
colnames = dt << get column names( numeric,string );
meanlist = {};
For( i = 1, i <= N Items( colnames ), i++,
m = dt[0, colnames[i]];
high_rows = Loc(m > 1000000);
column(dt,colnames[i]) << Set Property("Missing Value Codes", As List(m[high_rows]));
column(dt,colnames[i]) << Color Cells("Red", high_rows);
Write();
);