title: Generate list of all possible combinations of elements of vector
body: <p>I am trying to generate all possible combinations of 0 and 1's in a vector of length 14. Is there an easy way of getting that output as a list of vectors, or even better, a dataframe?</p>
  
  <p>To demonstrate better what I am looking for, let's suppose that I only want a vector of length 3. I would like to be able to generate the following:</p>
  
  <pre><code> (1,1,1), (0,0,0), (1,1,0), (1,0,0), (1,0,1), (0,1,0), (0,1,1), (0,0,0)
  </code></pre>