="r">summary(b1 &amp; w2)
#&gt;    FALSE     TRUE     Min.     Max. 
#&gt; 99999989       11       20       30
</code></pre>

<h2>processing chunks</h2>

<p>Many bit functions support a range restriction, </p>

<pre><code class="r">summary(b1, range=c(1,1000))
#&gt; FALSE  TRUE  Min.  Max. 
#&gt;   979    21    10    30
</code></pre>

<p>which is useful </p>

<pre><code class="r">as.which(b1, range=c(1, 1000))
#&gt;  [1] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#&gt; attr(,&quot;maxind