Example data
Say you have some scores on an exam and you want to assign letter grades. You start with the following:
Datalines; 55 65 74 76 88 92 94 96 98 ;
The task is to write a recoding algorithm that assigns below 65 to F, below 70 to D, below 80 to C, below 90 to B, and 90+ to A.