Column Name(n) returns the name of the n th column.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Column Name( 2 );
age
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Column Name( 2 )[1];
12
Char( Column Name( 2 ) );
"age"
dt << Get Column Names( argument );
where the optional argument controls the output of the Get Column Names function, as follows:
Specify Numeric, Character, Row State, or Expression to include only those column data types.
Specify "Continuous", "Ordinal", or "Nominal" to include only those modeling types.
Specify String to return a list of strings rather than column names.
For example, if you want to get numeric and continuous columns in the Big Class.jmp sample data table, proceed as follows:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
names = dt << Get Column Names(Numeric, "Continuous")
{height, weight}

Help created on 7/12/2018