title: Function to Change "List" objects into "numerics"
body: <p>I have a matrix containing several "list" vector. I would like to transform them into numerics.
  I have read that I should use as.numeric(x) - but since I have several values I would like to use a function which goes through my matrix and checks each vector of the matrix if it is a list and returns it as a numeric.</p>
  
  <p>I have thought I could use something like:</p>
  
  <pre><code>if 
  typeof(matrix$vector1)=="list" 
  </code></pre>
  
  <p><code>then 
  as.numeric(matrix$vector1)</code></p>
  
  <p>Can anybody help me out as how to create such a function?
  I'd appreciate any kind of help!</p>
  
  <p>Kind regards,</p>