cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
skyzvoir0001
Level III

Delete Column

I have 190+ columns and I wanted to delete columns stored in the list

Remain_columns = { column names I want to remain}.
How do I do it using for loop?

1 REPLY 1
txnelson
Super User

Re: Delete Column

You do not have to loop through the names.  That is, assuming you want all of the columns named in that list to be deleted.  Below is a simple example 

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

namesCol = dt << get column names( string, continuous );

dt << delete columns( namesCol );
Jim