我有如下数据:
cluster Name C1 he she mine whoC2 mike jack timec3 all how
想转变为:
cluster Name C1 hec1 shec1 minec1 whoC2 mikec2 jackc2 timec3 allc3 how
十分感谢!
第一个给出解答的, 50元感谢.
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
在EXCEL中拖拉一下就可以了啊
如果要是有超过500 个CLUSTER, 那可就不容易拖了. 这里只是一个例子.
data temp(drop = newcluster); infile x; /*put your file Reference here */ retain cluster ; retain newcluster; input cluster $1-2 @; if lowcase(substr(cluster,1,1))='c' then do ; input @3 value $; newcluster = cluster; end; if cluster = " " then do; cluster = newcluster; input @3 value; end;run;
[此贴子已经被作者于2008-4-23 2:58:50编辑过]
请上传任一文件 在你的贴子里, 标上50元出售.
十分感谢你的回答.