title: Return a single value of a list of vectors in R
body: <p>I am new to R and stack overflow so I am sorry if this question is unnecesary but I havent found an answer (maybe I used wrong key words).
  So here is my problem.</p>
  
  <p>I have a list of multiple vecors eg. :</p>
  
  <pre><code>x&lt;-list(c(1:3),c(4:6),c(7:9))
  
  &gt; x
  [[1]]
  [1] 1 2 3
  
  [[2]]
  [1] 4 5 6
  
  [[3]]
  [1] 7 8 9
  </code></pre>
  
  <p>And I want to return a single value of a single vector lets say the "5"</p>
  
  <p>I only managed to get the whole vector using</p>
  
  <pre><code>x[2]
  
  [[1]]
  
  [1] 4 5 6
  </code></pre>
  
  <p>but i failed to return a single value</p>
  
  <p>Thanks in advance</p>