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
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;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
