cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!

Discussions

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

How to select & delete rows when the cell did not start with W

Hello,

I have a table with 2 columns (Process & MC)

I want to select and delete rows that fulfill 2 conditions below using scripting ;

1. Column Process = WB

2. Column MC = does not start with "W"

I've checked through the scripting help but couldn't find anything useful.

 

If I use below script, it will delete all rows that MC column cells starts with "W"  which is not what I want. 

dt3 << select where(:Process == "WB") & Starts With(:MC, "W") << delete rows ;

I'm using JMP 15.

Any idea how to do it?

1 REPLY 1
jthi
Super User

Re: How to select & delete rows when the cell did not start with W

You are were close. Just combine both conditions inside Select Where and it should work

dt3 << select where(:Process == "WB" & Starts With(:MC, "W")) << delete rows ;
-Jarmo

Recommended Articles