title: R: Converting from string to double
body: <p>I am trying to convert from a string to a double in R. However, every time I convert the number, R creates an integer.  </p>
  
  <p>For example:  </p>
  
  <pre><code>a = "100.11"  
  a = as.double(a)  
  </code></pre>
  
  <p>And the output reads <code>100</code>. How to I retain the decimals when converting from string to numeric?
  I've set <code>options(digits=3)</code>.</p>
  
  <p>Thanks</p>
  
  <p>Mike</p>