Simple Question: How to find out a column numberHello Community,
i just want to learn how to find out a column number in JMP.
I tried using Column Info, but this information is not there. I can type a column number in Cols > Column Selection > Go to.. , but I don't want to try to guess.
Because I want to use the Column Number in my Script to loop over it (for example from column 120 to 130). But for this I needed to find out, that my starter Column (in my case "I_nA_3_m30_NS") was located on the column 120..
Thanks for any help.
Data TableRe: Simple Question: How to find out a column numberHi,
Here is one method to return the relative position of the first column matching a text pattern (in my care "VISIT"):
Names default to here (1);
dt = current data table ();
cols = dt << get column names (string);
text = "VISIT";
tcol = contains (cols, text);
show (tcol);
Let us know if that works for you.
Best,
TS
Re: Simple Question: How to find out a column numberOne way to approach this is:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
colNumber = Contains( dt << get column names( string ), "height" );
Show( colNumber );