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

Joining Data Tables<br />

Option in JMP<br />

By Row Number<br />

Cartesian Join<br />

By Matching Columns<br />

Description<br />

Joins the two tables side by side.<br />

Joins two tables using a Cartesian fashion, where it forms a new table<br />

consisting of all possible combinations of the rows from two original<br />

tables. JMP crosses the data in the first table with the data in the<br />

second to display all combinations of the values in each set.<br />

When you select this option, the window expands, prompting you to<br />

select columns whose values and data types must match in both tables<br />

for rows to be joined. You should:<br />

1 Highlight a column name from each list in the Source Columns<br />

area. The first highlighted column in the top list pairs with the<br />

first highlighted column in the bottom list, the second columns<br />

are paired, and so on. Rows join only if values and data types<br />

match for all the column pairs.<br />

2 Click Match. The selected pair of columns are displayed in the<br />

Match columns box. Matching columns do not have to have the<br />

same names and do not have to be in the same relative column<br />

position in both tables.<br />

3 (Optional) To only include the first match found, check the boxes<br />

associated with Drop multiples in both tables. Only the first<br />

match found is written to the new table. If you specify this option<br />

for one table, the first match value is joined with all matches in the<br />

other table. If you do not check the boxes associated with Drop<br />

multiples in either table, a Cartesian join is performed within each<br />

group of matching column values.<br />

4 (Optional) To include all rows from the data table, even when<br />

there is no matching value, check the boxes associated with<br />

Include non-matches. You can specify this option for either or<br />

both data tables being joined.<br />

7 Reshaping Data<br />

5 Type the name of the new table in the text box beside Output table name.<br />

6 Consult the following table to further specify how to combine the data tables:<br />

Option in JMP<br />

Select Columns for joined<br />

table<br />

Description<br />

Select the Select Columns for joined table option if you want<br />

to select a subset of columns from either table for inclusion in<br />

the output table. Follow these steps:<br />

1 In the Source Columns area, highlight the columns from<br />

each table that you want to include in the new table.<br />

2 Click Select in the Output Columns area.

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

Saved successfully!

Ooh no, something went wrong!