cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

IS NUMBER IS MISSING etc.

I have the following snippet of JSL that checks the My_Graphs list to determine whether the ith row is a number or not and do one of two things (col 6 consists of numbers and "."). The first part of the IF works - it sets the chart min at 1.2 the LCL and draws the plot. However, if the LCL is "." it does not set the LCL to 0. Immediately below is the the first 6 rows of col 6.

 

.
0.25
-2
-0.018
.
0.25

 

if(Is Number(num(My_Graphs [6][i])),

(Plot << dispatch(

{"Variability Chart for..."},

"2",

ScaleBox,

{Min(num(My_Graphs [6][i]) * 1.2 ),

Add Ref Line( num(My_Graphs [6][i]), Dotted, "Red", "LCL = " || My_Graphs [6][i] , 2 ),

Show Major Grid( 1 )})

),

(Plot << dispatch(

{"Variability Chart for..."},

"2", ScaleBox, {Min(0)})

)

);//end if

10 REPLIES 10
karmstro
Level III

Re: IS NUMBER IS MISSING etc.

Thanks for your input - I guess I was a little unclear in my last responce but once I converted the strings from the list to num the Is Missing function behaved as expected. 

Recommended Articles