楼主: wgwu
2935 11

[原创博文] 求助一个SAS base 编程实现 [推广有奖]

11
邓贵大 发表于 2013-5-7 20:57:15
jingju11 发表于 2010-7-8 21:07
可以简化成
  1. data have;
  2.   infile datalines;
  3.   format x1-x4 $1.;
  4.   retain x1 x2;
  5.   input x3 x4 @@;
  6.   if anyalpha(x3) or anyalpha(x4) then do;
  7.     x1 = x3;
  8.     x2 = x4;
  9.   end;
  10.   else output;
  11. datalines;
  12. a b
  13. 1 2 3 4
  14. 5 6 2 3
  15. c d
  16. 1 3 4 5
  17. ;
复制代码
pobel的逻辑太复杂, NO OFFENSE!
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.

12
boe 发表于 2013-5-7 21:58:58
学习了
Gorgeous girl , I love !

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-28 16:07