Continued - dropping variables
Instead of wanting to keep just a handful of variables, it is possible that we might want to get rid of just a handful of variables in our titanic data file. Below we show how we could get rid of the variables pclass and name.
data mylib.titanic;
set mylib.titanic;
drop pclass name;
run;
proc contents data=mylib.titanic;
run;
proc print data=mylib.titanic;
run;
No comments:
Post a Comment