title: How to subset from a list in R
body: <p>I have a rather simple task but haven't find a good solution.</p>
  
  <pre><code>&gt; mylist  
  [[1]]
   [1]  1  2  3  4  5  6  7  8  9 10
  
  [[2]]
   [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z"
  
  [[3]]
  [1] 25 26 27 28 29 30 31 32
  
  y &lt;- c(3,5,9)    
  </code></pre>
  
  <p>I would like to extract from <em>mylist</em> the sub-elements 3,5, and 9 of each component in the list.
  I have tried, <code>sapply[mylist,"[[",y]</code> but not luck!, and others like vapply, lapply, etc..  Thanks in advance for your help</p>
  
  <p>Mauricio Ortiz </p>