title: All Possible Combinations of Values in a Vector R
body: <p>In R, I have the following list of letters:</p>
  <p><code>lets &lt;- c(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;)</code></p>
  <p>I want to be able to return a resulting list of lists that includes every possible combination of the letters, which would look like the following:</p>
  <pre><code>[[1]]
  [1] &quot;A&quot;
  
  [[2]]
  [1] &quot;B&quot;
  
  [[3]]
  [1] &quot;C&quot;
  
  [[4]]
  [1] &quot;A&quot; &quot;B&quot;
  
  [[5]]
  [1] &quot;A&quot; &quot;C&quot;
  
  [[6]]
  [1] &quot;B&quot; &quot;C&quot;
  
  [[7]]
  [1] &quot;A&quot; &quot;B&quot; &quot;C&quot;
  
  </code></pre>