span> <span class='kw'>=</span> <span class='fl'>2</span>, <span class='kw'>freq</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='fl'>1</span>, <span class='fl'>2</span>))</div><div class='output co'>#&gt; [1] 2</div><div class='input'>
<span class='co'># zero sized combinations</span>
<span class='fu'>ncombinations</span>(<span class='fl'>5</span>, <span class='fl'>0</span>)</div><div class='output co'>#&gt; [1] 1</div><div class='input'><s