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

Concatenate Data Tables<br />

Figure 6.20 Result of Concatenating Two Data Tables<br />

Concatenated data tables always have a column for every column name found in the original data tables.<br />

However, if the column names do not match exactly, they are not merged. For example, if the yield column<br />

was instead named yield1 and yield2, a separate column would be created for each in the concatenated data<br />

table.<br />

When you concatenate two or more data tables containing table variables, separate columns are created for<br />

each table variable. This ensures that important distinctions are not lost when concatenating data tables.<br />

Note: Columns are not created for table variables that begin with the name Notes.<br />

Example of Concatenating Data Tables and Table Variables<br />

For example, suppose that two cancer trials were conducted at two different hospitals. One of the trials’ data<br />

is in the Cancer1.jmp data table, and the other trial’s data is in the Cancer2.jmp data table.<br />

Consolidate the data and the variables into one table, as follows:<br />

1. Open the Cancer1.jmp and Cancer2.jmp sample data tables.<br />

Notice that there are two distinct table variables: Dosage Amount and Location. In the concatenated<br />

table, columns will be created for these two table variables.<br />

2. From the Cancer1.jmp data table, select Tables > Concatenate.<br />

3. Select Cancer2 and click Add.<br />

4. Click OK.

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

Saved successfully!

Ooh no, something went wrong!