Continued Keeping variable
Our titanic data file had many many variables, say16, but we only care about just
a handful of them, pclass survived name. We can subset our data file to keep just those variables as
shown below.
data mylib.titanic;
set mylib.titanic;
keep pclass survived name;
run;
proc contents data=mylib.titanic;
run;
proc print data=mylib.titanic;
run;
No comments:
Post a Comment