SAS:如何计算除某些字符变量之外的所有字符变量的频率 [英] SAS: How to calculate frequency for all character variables except some
本文介绍了SAS:如何计算除某些字符变量之外的所有字符变量的频率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道我可以使用以下内容来计算所有字符的频率:
proc freq data=sashelp.class;表_char_;跑步;
但是,有没有办法排除一些变量?我想做类似的事情:
proc freq data=sashelp.class;表_char_EXCEPT VAR1 VAR2;跑步;
非常感谢!
解决方案
可以使用 drop = ,如下图.
<块引用>proc freq data=sashelp.cars(drop=origin make);表_char_;跑步;
I know I can have something like the following to calculate frequency for all Chars:
proc freq data=sashelp.class;
tables _char_;
run;
However, is there a way to exclude some variables? I want to do something like:
proc freq data=sashelp.class;
tables _char_ EXCEPT VAR1 VAR2;
run;
Thank you so much!
解决方案
you can use drop = , as shown below.
proc freq data=sashelp.cars(drop=origin make); tables _char_; run;
这篇关于SAS:如何计算除某些字符变量之外的所有字符变量的频率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文