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"
To retrieve a list of the names of all columns in a data table, submit Get Column Names.
dt << Get Column Names( argument );
•
|
•
|
•
|
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}