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 437<br />

Row State Functions<br />

Date Difference(01Jan2010:00:00:00, 01Jan2010:09:22:57, "Hour", "actual");<br />

The following formula returns 1, the number of times a new hour started between the times:<br />

Date Difference(31Dec2010:23:59:59, 01Jan2011:00:59:59, "Hour", "start");<br />

Row State Functions<br />

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

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

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

Properties” on page 151 in the “Set Column Properties” chapter, and “Row State Columns” on page 149 in<br />

the “Set Column Properties” chapter.)This formula processes row state data just as it would process<br />

character and numeric data.<br />

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

Note: A row can be assigned any combination of row states; a row state column can have multiple row<br />

states as a value.<br />

Table B.2 describes the type of argument each Row State function requires and what each returns.<br />

Table B.2 Row State Functions<br />

Function Name Argument Type Required What the Function Returns (Your Column<br />

Data Type Should be This Type)<br />

Row State none row state of current row<br />

As Row State numeric all row states of current row<br />

Combine States multiple row state arguments multiple row state assignments<br />

Excluded State positive integer or zero row state-excluded or not excluded<br />

Hidden State positive integer or zero row state-hidden or not hidden<br />

Labeled State positive integer or zero row state-labeled or not labeled<br />

Color State<br />

integer or color name or {red,<br />

green, blue}<br />

row state color<br />

Marker State integer or character row state marker<br />

Selected State positive integer or zero row state-selected or not selected<br />

Hue State integer row state hue<br />

Shade State integer 1-5 row state intensity<br />

Excluded Row State() or row state column numeric 0 (not excluded) or 1 (excluded)

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

Saved successfully!

Ooh no, something went wrong!