cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Deleting columns

I am creating a bunch of new columns in a jmp datasheet and generate a summary table. I am doing all of this as a JMP script. Then I delete the new columns manually, exclude certain rows based on values in a column (manually) and rerun the earlier script. Is there a way to have jmp delete specific columns and exclude specific rows for me, as a script, instead of doing it manually?

Thanks,

Ravi

1 ACCEPTED SOLUTION

Accepted Solutions
ptkguy
Level II

Re: Deleting columns

Something like this should work: (though it may be more complicated depending on the condition you're using to exclude rows)

 

 

dt = data table("Your Table Name");
 
dt<< delete column(column("1st Column to Delete"));
dt<< delete column(column("2nd Column to Delete"));
 
dt<<select where(/*condition for excluding*/);
 
dt<<exclude;

 

View solution in original post

2 REPLIES 2
ron_horne
Super User (Alumni)

Re: Deleting columns

hay Ravi,

i thin there is a way, by what criteria do you want do to this? will need more information to help you.

ron

ptkguy
Level II

Re: Deleting columns

Something like this should work: (though it may be more complicated depending on the condition you're using to exclude rows)

 

 

dt = data table("Your Table Name");
 
dt<< delete column(column("1st Column to Delete"));
dt<< delete column(column("2nd Column to Delete"));
 
dt<<select where(/*condition for excluding*/);
 
dt<<exclude;

 

Recommended Articles