從清單中選擇列組Using an associative array, </CODE>I have a list containing the titles of column groups (common). I tried to use select column group with that but it doesn't work as is. What modifications do I need to make for this to work?</P><BR /><PRE><CODE class=" language-jsl">dt << select column group( common );
自動化和腳本回覆:從清單中選擇列組別理我!明白了。呃!
For( g = 1, g <= N Items( common ), g++,
dt << select column group( common[g] )
);回覆:從清單中選擇列組您也可以使用具有選擇列組的列表,但您必須對其進行評估
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
dt << group columns("xy", {:X, :y});
dt << group columns("pollutants", :Ozone :: :Lead);
groupnames = {"xy", "pollutants"};
Eval(EvalExpr(dt << select column group(Expr(groupnames))));