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 7 Reshaping Data 251<br />

Joining Data Tables<br />

Figure 7.33 Examples of a Cartesian Join<br />

7 Reshaping Data<br />

Example 3: Join by Matching Columns<br />

When join by matching columns, JMP finds specified column(s) values that exist in both tables and<br />

combines all values associated with that value into a new data table. Note that to join by matching<br />

columns, the columns must have the same data type (numeric, character, or row state).<br />

Joining Tables with the Same Rows in Different Order<br />

Suppose you have one data table containing students’ names, ages, and sexes. You have another data<br />

table containing their names, height, and weight. Instead of working with two separate tables, you<br />

would like to combine the tables into one, as shown in Figure 7.34. Then, you will be prepared to run<br />

any appropriate analyses.<br />

You realize that the students’ names are not in the same order in both tables; for example, Alice is on<br />

row 7 in the first table and row 9 in the second table.<br />

Figure 7.34 shows the two original tables and new table you would like to create.

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

Saved successfully!

Ooh no, something went wrong!