cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

Vector Columns?

How Can I create a pre-filled Col List Box with all the Vector Columns of the current data table?

Like << Modeling Type({"Continuous"}), but for modeling type Vector.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
New Window( "Vector columns", 
Col List Box(All, width( 250 ),<< Modeling Type({"Continuous"}) ),
Col List Box(All, width( 250 ),<< Modeling Type({"Vector"} ) ));


Seems to be an issue of All - which doesn't pick All  columns .
 is there a command All_even_the_Expressions ?

2 REPLIES 2
jthi
Super User

Re: Vector Columns?

Loop over the list of columns, get vector modeling types and use "" with col list box

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class Families.jmp");

nw = New Window("Vector columns",
	clb = Col List Box(dt, "", width(250), <<Modeling Type({"Vector"}))
);

vcols = Filter Each({colname}, dt << Get Column Names("String"), Column(dt, colname) << get modeling type == "Vector");
clb << Set Items(vcols);
-Jarmo
hogi
Level XIII

Re: Vector Columns?

@jthi , many thanks for the nice workaround :)

@JMP: why ?!

Recommended Articles