B*******e 发帖数: 277 | 1 data不clean,本应该是numerical的variable,对应的位置上出现的是一个字母
我想把这个的record之接delete掉
不知道在data step怎样超作
有人能指点一下吗?谢谢 |
f****r 发帖数: 1140 | 2 最笨的方法,3步:1.都按照char输进去。2. 不要的删除掉。 2. char-->numeric |
t*****l 发帖数: 11 | 3 也可以用numeric 输进去,这样字母就会变成missing "."
if var="." then delete;
【在 B*******e 的大作中提到】 : data不clean,本应该是numerical的variable,对应的位置上出现的是一个字母 : 我想把这个的record之接delete掉 : 不知道在data step怎样超作 : 有人能指点一下吗?谢谢
|
B*******e 发帖数: 277 | 4 谢谢上面两位
我发贴后在网上胡搜了一同
最后用的是这个方法
if _error_ eq 1 then delete;
【在 t*****l 的大作中提到】 : 也可以用numeric 输进去,这样字母就会变成missing "." : if var="." then delete;
|
q**j 发帖数: 10612 | 5 these are all "shan zhai" approach. the more elegant way is to use "??" in
front of the informat. then sas will ignore those record itself and no error
message are displayed.
谢谢上面两位
我发贴后在网上胡搜了一同
最后用的是这个方法
if _error_ eq 1 then delete;
【在 B*******e 的大作中提到】 : 谢谢上面两位 : 我发贴后在网上胡搜了一同 : 最后用的是这个方法 : if _error_ eq 1 then delete;
|
w****a 发帖数: 114 | 6 能解释一下吗?谢谢你。
error
【在 q**j 的大作中提到】 : these are all "shan zhai" approach. the more elegant way is to use "??" in : front of the informat. then sas will ignore those record itself and no error : message are displayed. : : 谢谢上面两位 : 我发贴后在网上胡搜了一同 : 最后用的是这个方法 : if _error_ eq 1 then delete;
|
q**j 发帖数: 10612 | 7 just as i said. put ?? in front of the informat for the variable that genera
tes the error message.
【在 w****a 的大作中提到】 : 能解释一下吗?谢谢你。 : : error
|
P****D 发帖数: 11146 | |