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

Assignment Functions<br />

Figure B.18 Example of a Formula <strong>Using</strong> the Selected Function<br />

The example in Figure B.19 assigns row state conditions to a row state column. The formula for the row<br />

state column (in the columns called row state col) checks to determine whether the active row state is either<br />

Hidden or Excluded, and if so, assigns the Labeled row state.<br />

Figure B.19 Calculate Row State Information in a Row State Column<br />

Color Of<br />

Accepts any row state expression or column, or the Row State() function as its argument. Returns a number<br />

from the <strong>JMP</strong> color map that corresponds to the active color state, or zero if there is no assigned color.<br />

Marker Of<br />

Accepts any row state expression or column, or the Row State() function as its argument. Returns a number<br />

from the <strong>JMP</strong> marker map that corresponds to the active marker or zero if there is no assigned marker.<br />

Assignment Functions<br />

Assignment functions work in place. That is, the result returned by the operation (on the right of the<br />

operator) is stored in the argument on the left of the operator and replaces its current value.<br />

Assignment statements are most often used in conjunction with other commands to build a JSL script. You<br />

can use the Formula Editor to create and execute a script in that column, but this is not recommended<br />

because of dependencies and ambiguities that can result. Most often, scripts are stored as .jsl files, and can be<br />

saved with a data table. See “Create and Save Scripts” on page 124 in the “Enter and Edit Data” chapter. For<br />

details about syntax, see the Scripting Guide.<br />

Note: The first argument of an assignment function must be capable of being assigned. This means you<br />

cannot have an assignment such as 3+=4, because 3 is a constant value that cannot be reassigned. You must<br />

first create a variable (a table variable or local variable) whose value is 3. (For details about table variables, see<br />

“Use Table Variables” on page 122 in the “Enter and Edit Data” chapter. For details about local variables, see

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

Saved successfully!

Ooh no, something went wrong!