有一个数据是这样的,每个entry是顾客的fund account,种类有equity, bonds 和 others
如
customer fund category balances
1 equity 100
1 equity 200
1 bonds 120
2 bonds 300
2 others 210
3 bonds 100
现在我需要把这样的一个数据合并成一个以每个顾客编号为准的文件,里面包括每个fund的数量和总的fund数量
也就是
customer N_equity N_bonds N_others N_total total_balance
1 2 1 0 3
2 0 1 1 2
3 0 1 0 1
请教大牛,如何让sas这样count 出这些categorical variable的个数呢?
多谢


雷达卡






京公网安备 11010802022788号







