Note: If you need to recode similar values within multiple columns, use the Recode option in Cols > Standardize Attributes. See Standardize Attributes in The Column Info Window.
1.
|
2.
|
Select the Type column by clicking once on the column heading.
|
3.
|
Select Cols > Recode.
|
4.
|
In the Recode window, enter the desired values in the New Value boxes. For this example, enter Technical in the Computer row, and Drug in the Pharmaceutical row.
|
5.
|
Note: If you enter a non-numeric value in a column with a Numeric data type, you are prompted to convert the data type to Character. Click Yes to convert the column and display the new value. Click No to keep the column Numeric and display a missing value.
When you are finished recoding data, click Done to view the following options:
becomes active when multiple values are selected. Click Group to make highlighted values part of the same group. If you previously edited a value before grouping, the edited value becomes the group representative in the New Value column. Otherwise, the group representative is the value that occurs most often.
removes leading and trailing whitespace characters and removes duplicate interior whitespace characters. That is, if more than one whitespace character is present, the Collapse Whitespace command replaces the two spaces with one space.
right-click selected values to select a different grouping value, or group representative. The Group To command displays the Old Values that occur most often in the data table with their corresponding New Values (if they are different). The list displays the first 8 possible group representatives.
when two values are highlighted, select Swap New Values to make the new value of the first value adopt the new value of the second value, and vice versa.
right-click a single value from a group and select Make Representative to make the selected value the New Value.
Select the following Group Similar Values commands to increase the accuracy of grouping:
1.
|
2.
|
Select the Name column.
|
3.
|
Select Cols > Recode.
|
4.
|
From the red triangle menu, select Group Similar Values.
|
5.
|
Select the Max Character Difference option and type “6”.
|
6.
|
Click OK.
|
In this example, the grouped values have no more than 6 characters different between them. The values shown in the New Value column represents the grouped values in the recoded data table.
7.
|
Right-click Almond Roca and select Make Representative to change the new value to represent a different value within the group.
|
To remove values from a group, right-click and select Remove from Group.
8.
|
1.
|
2.
|
Select the Name column.
|
3.
|
Select Cols > Recode.
|
4.
|
From the red triangle menu, select Group Similar Values.
|
5.
|
Select the Difference Ratio option and type “.5”.
|
6.
|
Click OK.
|
7.
|
From the red triangle menu, select Done > New Column to save the recoded data in a new column in the data table.
|