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
penalah
Level II

Difference in contain Function

Can anybody please help me understand the below 2 functions?

 

1) contains(:column == "HP") versus

2) contains(:column, "HP")

 

 

 

1 REPLY 1

Re: Difference in contain Function

The first function call exhibits incorrect syntax for the Contains() function and makes no sense. The Contains() function takes two arguments that represent a string, expression, matrix, list, or associative array and the second argument is the same type. The second function call uses correct syntax and will return the location of the first occurrence of the second argument (e.g., "HP") in the variable column, assuming it stores a character string, or 0 if it is not found.

 

Select Help > Scripting Index > Functions > Contains in JMP to see the syntax and explanation.

 

See the Help entry for this function here.

Recommended Articles