14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C Formula Functions Reference 489<br />

Row State Functions<br />

• Week Of Year(2752272000) returns the number 12.<br />

• Time Of Day(2752272000) returns the number 0.<br />

Informat<br />

The argument for the Informat function is a date character string. For example, Informat("03/20/1991")<br />

returns the appropriate JMP date value, 2752272000. JMP can read all the date formats except for<br />

Abbrev Date and Long Date.<br />

Abbrev Date, Long Date, Short Date<br />

The argument for these date functions is a JMP date. They return character strings that are the<br />

formatted representation of the argument. For example:<br />

• Abbrev Date(2752272000) returns Wed, Mar 20,1991.<br />

• Long Date(2752272000) returns Wednesday, March 20, 1991.<br />

• Short Date(2752272000) returns 3/20/91.<br />

Format<br />

The first argument in the Format function is a JMP date. This function returns the character string<br />

representation of the date by the date format you specify in the second argument, which is a quoted<br />

string. If you apply this formula to a numeric column, JMP automatically changes the column’s data<br />

type to character.<br />

You can also supply a column for the first argument and leave the rest blank. The result is the formatted<br />

value of the column reference. This can be used to extract value labels of a column when the value<br />

labels are turned off.<br />

C Formula Functions Reference<br />

MDYHMS<br />

The argument of MDYHMS is a JMP date. This function shows all date and time fields, appending<br />

zeros as time fields if no time information is present. This is useful if a date column is formulated such<br />

that not all date information is displayed. The MDYHMS function can be used to see all available date<br />

and time information.<br />

Row State Functions<br />

There are six characteristics that rows in a data table can have: selected, hidden, excluded, labeled,<br />

colored, and marked. If you give rows one or more of these characteristics and then create row state data<br />

table columns, you can then create a formula that computes and saves row state conditions. (See<br />

“Assigning Characteristics to Rows and Columns,” p. 131, and “Using Row State Columns,” p. 165, for<br />

more details.)This formula processes row state data just as it would process character and numeric data.<br />

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

Row State<br />

Returns the active row state condition of the current row as true or false. You can use this function to<br />

conveniently write conditional clauses that depend on the status of the current row. For example,<br />

Figure C.19 assigns a 1 to rows that are currently selected and labeled and 0 otherwise.

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

Saved successfully!

Ooh no, something went wrong!