How to use SAS to count the frequency of each observation in a column as in R
<p>I simply want to know the total frequency of each variable as in R table(). Can I do that in SAS?</p>

<p>I have a SAS dataset as following.</p>

<pre><code>data level_score;
infile datalines;
input ID $ Level $ SCORE;
return;
datalines;

    1   A2   0.2
    2   A3   0.8
    3   A4   0.3
    4   A5   0.2
    5   A6   0.2
    6   A3   0.6
    7   A4   0.2
    8   A5   0.6
    9   A6   0.2
;
run;

proc print data=level_score;
run;
</code></pre>

<p>I want to use SAS to know the frequency of Level and SCORE as in R table()</p>

<p>For variable 'Level'</p>

<pre><code>A2 A3 A4 A5 A6
 1  2  2  2  2
</code></pre>

<p>For variable 'SCORE'</p>

<pre><code>0.2 0.3 0.6 0.8
  5   1   2   1
</code></pre>