从列表中选择列组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))));