公卫百科  > 所属分类  >  SAS   
[0] 评论[0] 编辑

SAS Keep Statement

Used in the datastep, the keep statement explicitly specifies which variables are to be retained in the data set. Example:


data score;
infile `c:\courses\mh160.dat';
input last $ first $ m1-m3 final;
grade=0.2*m1+0.2*m2+0.2*m3+0.4*final; 公卫人
keep last first grade;
run;


The data set score will contain only the 3 variables last, first, and grade. If the keep statement were not used, the data set would contain 7 variables: last, first, m1, m2, m3, final, and grade.

It is preferable to use the keep= data set option.
公卫人


附件列表


0

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

如果您认为本词条还有待完善,请 编辑

上一篇 SAS Keys Window    下一篇 SAS Input Statement

标签

暂无标签

同义词

暂无同义词