14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

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

Joining Data Tables<br />

Example 1: Join by Row Number<br />

Joining tables by row number joins the two tables side by side, and the new table has all columns from<br />

both tables (unless you specify to only include certain columns).<br />

Joining Tables with an Unequal Number of Rows<br />

If two tables you want to join have an unequal number of rows, the new table will have values for rows<br />

found in both tables. For example, as Figure 7.26 shows, if one table with two rows (the table on the<br />

left) is joined with a table with four rows (the table in the center), then the new table (the table on the<br />

right) contains four rows.<br />

Figure 7.26 Joining Tables by Row Number<br />

7 Reshaping Data<br />

Joining Columns with the Same Name<br />

If the two tables have column names that are the same, the names of these columns in the new table<br />

appear as “column name of table name.” For example, if you joined tables named Animal Data.jmp<br />

and Reptile Data.jmp, and both tables contained a column named gender, the new table contains<br />

columns named gender of Animal Data and gender of Reptile Data, as shown in Figure 7.27.<br />

Figure 7.27 Joining Tables by Row Number<br />

As a similar example, suppose you want to combine the eight rows from each data table shown in<br />

Figure 7.28 into a single table. You want to combine them so the new table contains all columns from<br />

both tables. Follow along with this next example by opening Trial1.jmp and Trial2.jmp from the Sample<br />

Data folder that was installed when you installed JMP.

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

Saved successfully!

Ooh no, something went wrong!