I have a data that I'm trying to adjust based on the row number, or say row name,
say I have the data below
data mydata; input indix $ prod1-prod6; cards; ind1 0.4 5 2 3 11 13 ind2 1 7 10 20 15 25 ind3 4 2 6 10 13 24 ind4 5 6 15 27 31 22 ind5 18 1 28 38 11 12 ind6 18 1 22 39 13 12 ind7 10 2 19 40 10 11 ind8 11 9 40 70 2 10 ; run;
I want to drop the prod# if it has ind5 and ind6 identical. (which will drop prod1 prod2 and Prod6)
moreover, I have a dataset that has more than 100 line. is there a quick way to keep only the first 6 rows and delete the rest.
... View more