14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix B Formula Functions Reference 411<br />

Comparison Functions<br />

Regex Match<br />

Regex Match is similar to Pat Match. Regex Match executes a pattern match using the source in the first<br />

argument and the pattern in the second argument. Regex Match uses a regular expression for the second<br />

argument and returns a list of information about the result of the match.<br />

A simpler function, Regex (“Regex” on page 407), is also available. Regex returns a string value rather than a<br />

list, so Regex is usually easier to use in the Formula Editor than RegEx Match.<br />

Comparison Functions<br />

You can create a formula that compare the values of two arguments by using the comparison function. Each<br />

comparison relationship evaluates as true or false based on numeric magnitudes or character rankings. A true<br />

relationship evaluates as one, and false evaluates as zero.<br />

Comparisons are useful when you include them in conditional expressions, but they can also stand alone as<br />

numeric expressions if neither term in comparison is missing. A relational symbol’s arguments can be any<br />

two expressions. However, both arguments in a comparison function must be of the same data type. Also<br />

note that:<br />

• <strong>JMP</strong> displays an error if you use a single “=” in a conditional where “==” is expected.<br />

• The Formula Editor uses the International Utilities package when comparing character strings. This<br />

package contains different rankings for each international character set and takes diacritical marks into<br />

consideration.<br />

• You should not use comparison operators to specifically compare to a missing value. Instead, use the Is<br />

Missing function to detect a missing value.<br />

See the Scripting Guide for details about syntax.<br />

< Less than<br />

> Greater than<br />

= Greater than or equal to<br />

== Equal to<br />

!= Not equal to<br />

a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!