title: How to convert a vector into a list in R?
body: <p>I have a vector with length of an even number.   </p>
  
  <pre><code>vec = c(1,3,2,4,5,6)
  </code></pre>
  
  <p>I want to convert it into a list like this, where every 2 consecutive numbers are put into a sub-component.</p>
  
  <pre><code>[[1]]
  [1] 1 3
  
  [[2]]
  [1] 2 4
  
  [[3]]
  [1] 5 6
  </code></pre>
  
  <p>There must be a easy way to do that. It's also OK to convert from a matrix to a list of like this, if it's easier to do so.</p>