Subscribe Bookmark RSS Feed

Test column data type

j_bonnouvrier

Community Trekker

Joined:

Dec 19, 2012

Hi,

 

Is there a simple way to test if the data type of a column is numeric and nominal?

 

Thanks and regards,

 

Jérôme

1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

You can retrieve both the Data Type and the Modeling Type of a column

     

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

show(dt:Height << Get Data Type());
show(dt:Height << Get Modeling Type());

 The documentation for these 2 elements is in the Scripting Index

     Help==>Scripting Index==>Data Table==>Column Scripting

Jim