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 4 Enter and Edit Data 113<br />

Edit Data<br />

To recode data:<br />

1. Select the columns containing the data that you would like to recode.<br />

2. Select Cols > Recode.<br />

Figure 4.8 Example of the Recode Window<br />

3. Type the new value in the text box corresponding to the old value that you want to change.<br />

4. Specify how you would like the text to be recoded. See “Recode Options” on page 113.<br />

5. Click OK.<br />

Recode Options<br />

In Place<br />

applies any change to the original data column.<br />

New Column<br />

creates a new column for the changed data and retains the original column.<br />

Formula Column<br />

creates a new column with the changes as a formula instead of values.<br />

Script creates a new script called Recode in the data table. You can run this script to perform recoding<br />

in-place. If you add more recodes later, the script updates (assuming that you select Script as the<br />

destination). You can run this script later, to new data, and copy it to other data tables, or run it from<br />

your own scripts.<br />

Red Triangle Options for Recode<br />

The red triangle menu contains options for the Recode window. The first three commands apply to all items<br />

in the data table list.<br />

Convert to Titlecase converts to title case, that is, an initial uppercase character and subsequent<br />

lowercase characters for each word.<br />

Convert to Uppercase<br />

converts all items to uppercase.<br />

Convert to Lowercase converts items to lowercase.<br />

Tab characters, space characters, and line separators are often imported into a data table. Remove these<br />

characters using the following commands:<br />

Trim Whitespace removes leading and trailing whitespace characters. For example, if an extra space was<br />

imported before and after the name John, this command would delete the spaces.

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

Saved successfully!

Ooh no, something went wrong!