摘要:
用 PROC SORT 步的参数 nodupkey 和 dupout 分别得到去重之后的数据集,和重复值组成的数据集。 假设数据集A为: ID age sex win lost 1 20 F 200 120 2 22 M 150 130 2 22 M 150 80 3 25 M 110 90 3 2 阅读全文
摘要:
可以用 DATA 步截取数据集的前 n 行。 /*保留数据集前100行*/data ds2; set ds1(firstobs=1 obs=100); run; firstobs : the first row number. obs : the rows you want to keep. 阅读全文
摘要:
章节 5.1 Adding Labels to Your Variables 715.2 Using Formats to Enhance Your Output 735.3 Regrouping Values Using Formats 765.4 More on Format Ranges 78 阅读全文