数据文件test3.txt
test3.txt
(3.5 KB)
程序如下:
DATA test;
INFILE 'test3.txt' DLM = ',' ;
INPUT id D7-D14;
run;
data testr;
set test;
D814=sum(of d8-d14);
if d7 ne D814 then r7="ng";
run;
结果如图
结果文件:testr.txt
testr.txt
(4.18 KB)

|
楼主: 孤灯渡漠
|
3840
13
[问答] 为何相等的变量在if判断里却不等!!数据程序已贴上 |
|
本科生 52%
-
|
| ||
|
|
| ||
|
欢迎加入亚太地区第一R&Python数据挖掘群: 251548215;
|
||
|
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord. When disappointment, grief and fear are gone, Sorrow forgot, love's purest joys restored. |
|
| ||
|
playmore邀请您访问ChinaTeX论坛!!!进入ChinaTeX论坛
|
||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


