cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
paul_apicella
Level III

Remove columns from a table

Hi everybody,

 

I need to export several tables (txt files containing 20 columns) under JMP, but only 10 columns are useful for my use.

How can I include in a script the deleting of specified columns? I have attached one example file: (1) the txt source (2) the JMP version with all columns (3) the final JMP version with 10 columns.

 

Thanks in advance,

 

Paul

2 REPLIES 2
txnelson
Super User

Re: Remove columns from a table

Here is the very simple script to delete the unwanted columns.

names default to here(1);
dt=current data table();
dt << delete columns("I-delai", "I-durée", "I-pos", 
	"R-delai", "N°-Rec", "E-durée", "TR-max", "TM-max", 
	"code-PP", "cod-R-d");

The details are covered in the scripting index

     Help==>Scripting Index

To get started with scripting, I suggest you read the Scripting Guide 

     Help==>JMP Documentation Library==>Scripting Guide

Jim
paul_apicella
Level III

Re: Remove columns from a table

Thanks txnelson,

 

You're absolutely right, the solutions (at least the simple ones) are in the scripting guide. We're always in a hurry to take the time to check it out.

All works well.

 

Have a good day

 

 

Paul

Recommended Articles