title: dplyr group_by logical values
body: <p>I'm trying to simplify this with a few statements.  Not sure how to go about it (or if i can), but anyone that can get me close or as few steps as possible.  I am using dplyr and lubridate. I have a database called OutofRange (sample);</p>
  
  <pre><code>OutOfRange %&gt;% select(OutRange, TouchVPOC)  
  Source: local data frame [341 x 2]
  
     OutRange TouchVPOC
  
    (lgl)     (lgl)  
  
  1     FALSE      TRUE  
  2     FALSE     FALSE  
  3     FALSE      TRUE  
  4     FALSE     FALSE  
  5     FALSE      TRUE
  
  OutOfRange %&gt;% select(OutRange, TouchVPOC) %&gt;% filter(OutRange == T) %&gt;% tally  
  Source: local data frame [1 x 1]
  
        n  (int)  
  1    37
  
  OutOfRange %&gt;% select(OutRange, TouchVPOC) %&gt;% filter(OutRange == T, TouchVPOC == T) %&gt;% tally  
  Source: local data frame [1 x 1]
  
        n  (int)  
  1    15
  
  15/37  
  [1] 0.4054054
  </code></pre>
  
  <p>So, if possible I'm looking for a final outcome of something like this, where CountofDataFrame is the count of all rows; where OutRange &amp; TouchVPOC are the count of TRUE Values; and Pct = TouchVPOC/OutRange.</p>
  
  <pre><code>CountOfDataFrame OutRange   TouchVPOC    Pct
               341       37          15    .40
  </code></pre>
  
  <p>I do realize, I may be asking alot.. and I'm new to this, any suggestions are welcome. Just looking for a basis or a start in the right direction.</p>