cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
SpannerHead
Level VI

Select column group from a list

Using an associative array, 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?

 

dt << select column group( common );

 


Slán



SpannerHead
2 ACCEPTED SOLUTIONS

Accepted Solutions
SpannerHead
Level VI

Re: Select column group from a list

Ignore me!  Figured it out.  Duh!

 

For( g = 1, g <= N Items( common ), g++,
    dt << select column group( common[g] )
);

Slán



SpannerHead

View solution in original post

jthi
Super User

Re: Select column group from a list

You can also use list with select column group but you have to evaluate it

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))));
-Jarmo

View solution in original post

2 REPLIES 2
SpannerHead
Level VI

Re: Select column group from a list

Ignore me!  Figured it out.  Duh!

 

For( g = 1, g <= N Items( common ), g++,
    dt << select column group( common[g] )
);

Slán



SpannerHead
jthi
Super User

Re: Select column group from a list

You can also use list with select column group but you have to evaluate it

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))));
-Jarmo

Recommended Articles