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

Transpose Rows and Columns<br />

Table 6.5 Description of the Transpose Window (Continued)<br />

Label<br />

By<br />

To use the data from a column in the original table as the<br />

column names in the new table:<br />

1. Highlight a column from the Select Columns box on<br />

the left.<br />

2. Click Label. The column name appears in the Label<br />

box.<br />

The default column name is name. You can specify an<br />

alternative name for the column using the Label column<br />

name option. Only one column is created for each distinct<br />

value in the label column. Therefore, if there are duplicate<br />

values in the label column, <strong>JMP</strong> creates only one column for<br />

the duplicated value using the value from the last duplicated<br />

row.<br />

To organize the transposed columns into groups based on the<br />

columns that you put into the By box:<br />

Table 6.6 describes the rules that apply to transposing.<br />

Table 6.6 Rules for Transposing<br />

1. Highlight the column name(s) in the Select Columns<br />

box whose values you want to see as a group.<br />

2. Click By.<br />

If<br />

The original table has<br />

columns but no rows<br />

The original table has one<br />

column and it is assigned to<br />

Label<br />

The original table has<br />

multiple columns and<br />

contains a label column<br />

There is no label column in<br />

the original table<br />

Then<br />

The new table contains one column that lists those column names.<br />

Its values become the column names in the transposed table.<br />

<strong>JMP</strong> automatically inserts the label column into the Label box when the<br />

window appears. You can remove this column if you do not want it to<br />

appear.<br />

The column names in the transposed table are Row 1, Row 2, …, Row n<br />

where n is the number of rows in the original table.

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

Saved successfully!

Ooh no, something went wrong!