14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 6 Reshape Data 191<br />

Join Data Tables<br />

Table 6.7 Description of the Join Window (Continued)<br />

By Matching Columns<br />

By Row Number<br />

Cartesian Join<br />

Select Columns for<br />

joined table<br />

Output table name<br />

To join rows, select columns in both tables whose values and data types<br />

match. You should:<br />

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

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

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

and so on. Rows join only if values and data types match for all the<br />

column pairs.<br />

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

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

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

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

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

the first match value is joined with all matches in the other table. If you<br />

do not check the boxes associated with Drop multiples in either table, a<br />

Cartesian join is performed within each group of matching column<br />

values.<br />

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

matching value, check the boxes associated with Include non-matches.<br />

You can specify this option for either or both data tables being joined.<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 tables.<br />

<strong>JMP</strong> crosses the data in the first table with the data in the second to display<br />

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

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

subset of columns from either table for inclusion in the output table. Follow<br />

these steps:<br />

1. In the Source Columns area, highlight the columns from each table that<br />

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

2. Click Select in the Output Columns area.<br />

To give a name to the joined table, type a name in the box beside Output<br />

table name.

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

Saved successfully!

Ooh no, something went wrong!