1.
Select Tables > Split.
Split Window
4.
Click Split By.
6.
Click Split.
To include all columns in the new table, click the Keep All option in the Remaining Columns area.
To select which columns to keep in the new table, click the Select option in the Remaining Columns area. Then select which columns to keep in the new table.
To keep this window open after clicking OK, check the box beside Keep dialog open.
Specify a Group variable when you want your data to be split within each group of the selected variable. Each group results in a row in the output table.
Note: You must also specify the required variables, Split By, and Split Columns.
In the Popcorn.jmp data table, the data in the trial column shows that there are two trials, 1 and 2. In this example, split the yield column into two new columns: one for trial 1 and one for trial 2. Proceed as follows:
1.
Open the Popcorn.jmp sample data table.
2.
Select Tables > Split.
3.
Select the yield column and click Split Columns.
4.
Select the trial column and click Split By.
5.
Under Remaining columns, select Keep All.
The default is Drop All, which omits any columns that are not in the Split By, Split Columns, or Group fields. Selecting Keep All includes these columns in the new table.
6.
(Optional) Type Yield column split by Trial column in the Output table name field.
7.
The yield and trial columns are gone.
The values from the original yield column are now split into the new columns named 1 and 2.
The columns other than trial and yield are exactly the same as they were in the original table.
New Table Created by Splitting yield Column by trial Column
The Drug Measurements.jmp sample data table contains measurements of three different drugs (a, b, and c) administered to 12 different subjects. You want to split the measurement into different columns, one for each drug type. You also want to group the measurements by subject.
1.
Open the Drug Measurements.jmp sample data table.
2.
Select Tables > Split.
3.
Select Drug Type and click Split By.
4.
Select Measurement and click Split Columns.
Notice that the Subject variable contains unequal groups. Most of the subjects were given all three drugs, but subject 2 was given only one drug, and subjects 7 and 12 were given only two drugs. In this situation, to ensure that the correct measurements are associated with the correct subject, specify Subject as the Group variable.
5.
Select Subject and click Group.
6.
Drug Measurements.jmp Split by a Grouping Variable