proc sql;
create table wanted as
select b.*, a.x
from
(select *
from (select distinct id from aaa), (select distinct visit from bbb)) b
left join aaa a
on a.id=b.id and a.visit=b.visit;
quit;
楼主: dxystata
|
956
4
[问答] 如何根据bbb数据集中变量visit的取值补全数据集aaa |
大师 34%
-
TA的文库 其他...
|
15论坛币
| |
| ||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明