title: How to test if an object is a vector in R
body: <p>I want to test if an object is a vector in R. I'm confused as to why </p>
  
  <pre><code>is.vector(c(0.1))
  </code></pre>
  
  <p>returns TRUE and so does</p>
  
  <pre><code>is.vector(0.1)
  </code></pre>
  
  <p>I would like it to return false when it is just a number and true when it is a vector. Can anyone offer any help on this please?</p>
  
  <p>Many thanks in advance.</p>