这样应该可以了。。。
data test;
input x $ y $ z k;
cards;
a1 1 1 1
a1 1 2 2
a2 1 1 1
a2 1 2 2
a3 3 1 1
a3 3 3 3
a1 4 4 4
a2 5 5 5
a3 6 6 6
;
proc summary data=test nway nmiss;
class x y;
var z k;
output out=test1(drop=_:)
sum(z)=sum_z
sum(k)=sum_k;
run;
这样做可以把数据集做成你要的截图的形式。
data example;
input no number cost;
cards;
1 1 10
1 2 12
1 3 52
2 4 67
3 5 18
3 6 108
4 7 21
5 8 36
6 9 55
;
run;
proc means data=example sum;
by no;
var cost;
output out=result sum=total;
run;
data total(drop=_type_ _freq_);
merge example result;
by no;
if no=lag(no) then total='';
run;
Hadoop|
Apache Pig|
Apache Kafka|
Apache Storm|
Impala|
Zookeeper|
SAS|
TensorFlow|
人工智能基础|
Apache Kylin|
Openstack|
Flink|
MapReduce|
大数据|
云计算|
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....