Grouping variables or creating a new variable using
IF/THEN ELSE statement
data a;
input dens percent @@;
datalines;
0.453 0.42..0.470 0.46..0.396 0.39 .0.430 0.46
;
run;
data a; set a ;
if dens>=0.450 and percent>=0.40 then type='T';
else type='J' ;
run;
No comments:
Post a Comment