CONVERTING ALPHANUMERIC AGE CODES
TO NUMERIC VALUES
____________________________________________________________
The RECODE changes the alphanumeric victim ages of victims under 1 year of age to a
numeric value and the CONVERT creates a new victim age variable converting all
alphanumeric representations of victim age to their numeric counterparts.
________________________________________________________________________
recode vic_age ('BB' = .7),('NN' = .1),('NB' = .2)(convert) into v_age.
|