cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles