4.5 Add code to the data step in 4.4 that will give the variables for each month...
Fantastic news! We've Found the answer you've been seeking!
Question:
4.5 Add code to the data step in 4.4 that will give the variables for each month a better name. The current variable name for each month is "1", "2", "3", ..... "12". The final data sets should not include any automatic variables that may have been created along the way. The data step code from 4.4 was:
data egg gas milk;
set aveprices_merged;
if Commodity = 'Egg' then output egg;
if Commodity = 'Gas' then output gas;
if Commodity = 'Milk' then output milk;
run;
Posted Date: