Please I have this set of data I want to delete rows 1-3, 5-6 and row 60
Which SAS code can I use?
An easy way:
data want;
set have;
if _n_ in (1, 2, 3, 5, 6, 60) then delete;
run;
You mean this?
data want;
set tank;
if _n_ in (1, 2, 3, 5, 6, 60) then delete;
run;
But you will need to learn some basics. To be used in a SET statement, TANK has to be a SAS data set. So you need to learn how to get from a spreadsheet to a SAS data set.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.