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

Transposing Rows and Columns<br />

Option in JMP<br />

By<br />

Transpose Selected Rows<br />

Only<br />

Output table name<br />

Description<br />

To organize the transpose into groups based on the<br />

columns you put in the By box, highlight column<br />

name(s) in the Select Columns box whose values you<br />

want to see as a group, and click By.<br />

To transpose only rows that are currently highlighted in<br />

the active table, click the box beside Transpose Selected<br />

Rows Only.<br />

To name the subset table, type a name in the box beside<br />

Output table name.<br />

7 Reshaping Data<br />

Keep dialog open<br />

To keep this window open after clicking OK, check the<br />

box beside Keep Dialog Open.<br />

3 Click Transpose. The transposed data table appears. The new table will have an additional column<br />

called Label whose values are the column names of the original table.<br />

The following rules apply to transposing:<br />

Table 7.1 Rules for Transposing<br />

If<br />

The original table has<br />

columns but no rows<br />

The original table has<br />

one column and it is<br />

assigned to Label<br />

The original table has<br />

multiple columns and<br />

contains a label column<br />

There is no label<br />

column in the original<br />

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

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

window appears.<br />

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

n where n is the number of rows in the original table.<br />

Examples of Transposing<br />

The original table in Figure 7.18, which is the table on the top, has two rows and three continuous<br />

columns called plastic, tin, and gold. Selecting Tables > Transpose creates the transposed table on the<br />

bottom of the page. The transposed table has a row for each of the three columns in the example table<br />

and columns named Row 1 and Row 2 for the original table’s rows. The additional column called<br />

Labels has the column names (plastic, tin, and gold) from the original table as values, ‘plastic,’ ‘tin,’<br />

and ‘gold.’

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

Saved successfully!

Ooh no, something went wrong!