14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 9 Formula Editor 287<br />

Creating a Formula<br />

Creating a Formula<br />

A formula is an expression stored in a column that performs operations in order to insert values into<br />

that column. Formulas can perform mathematical operations, such as addition and multiplication, or<br />

they can compare column values or join values by referring to other areas in the same data table.<br />

Formulas can consist of any JMP Scripting Language (JSL) command. Once you insert a formula into<br />

a column, the column is locked: its values can be edited only by changing or removing the formula.<br />

There are three basic steps to building a formula:<br />

1 Open the formula editor by right-clicking the column name to which you want to apply the<br />

formula and selecting Formula.<br />

or<br />

Double-click the column name to which you want to apply the formula, select Formula from the<br />

Column Properties menu, and then click Edit Formula.<br />

2 Select an empty formula element in the formula editing area by clicking it. (See Figure 9.2.) Note:<br />

An element is selected when there is a red outline around it. All terms within the smallest nesting<br />

box relative to the place you clicked become selected. The subsequent actions apply to those<br />

combined elements.<br />

3 Add expressions, functions, and terms from the formula work panel. (See Figure 9.2.) They are<br />

applied to the highlighted red box. The following sections in this chapter provide detailed<br />

instructions on how to add constants, elements, operators, and functions.<br />

Figure 9.2 Building a Formula<br />

3<br />

9Formulas<br />

2<br />

See “Using Basic Formula Editor Features,” p. 321, for an example of how to use the formula editor.

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

Saved successfully!

Ooh no, something went wrong!