|Edit Factor Labels|
A factor always has a specified number of levels N. The only values that it is permitted to have are integers in the range 1...N or missing value. The associated labels are a mapping to text strings that can be used for input or output of factor values. For example, a factor with three levels may represent drug dosages labelled 'placebo','low' and 'high'. A factor can also have numeric values associated with each ordinal level, in this example these could be 0.0, 5.0, and 10.0 representing the actual amounts of the drug.
When a variate column is converted to a factor, the distinct values will be identified and set up as the initial set of levels. Labels will also be created, having the same values in text form, for example '21','22', and '23'.
Edit Factor Labels allows you to edit the current values, add new labels or remove unwanted labels. To edit a value you select it within the list box. It can then be changed in the box above; press return to commit the change. The Add button will create a new label, and increase the number of levels (N) by one. The new label will default to its ordinal value, N, in text form, which you can then edit if required. (If the factor also has associated levels a new level will also be generated having the value N) The Delete button removes the currently selected label from the factor. Any cells in the spreadsheet column that have this value will be changed to missing (*).
The factor labels can be copied to or pasted from the clipboard using the Copy and Paste buttons respectively. The presently selected label and those below will be copied to/pasted from the clipboard. When pasting from the clipboard, if there are more items on the clipboard than in the label list, the extra items from the clipboard will be added at the end of the factor label list.
When you have finished editing the factor labels, click OK to return to Edit Column Attributes or Cancel if you want to discard the changes.
Note: The short cut key Control+F12 can be used to
place the factor levels or labels (whatever is currently being displayed)
of the current column on to the clipboard. The clipboard
can then be pasted into another factor with the Paste button above
or into a text edit window with the Edit | Paste (Ctrl+V) command.