</i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>fruits
 apple banana   pear 
     2      1      2 </code></pre>
</div>
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">table</span>(fruits) <span class="sc">/</span> <span class="fu">sum</span>(<span class="fu">table</span>(fruits)) <span class="sc">*</span> <span class="dv">100