cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
j_bonnouvrier
Level III

Test column data type

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 1
txnelson
Super User

Re: Test column data type

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