title: Convert written number to number in R
body: <p>Does anybody know a function to convert a text representation of a number into an actual number, e.g. 'twenty thousand three hundred and five' into 20305. I have written numbers in dataframe rows and want to convert them to numbers.</p>
  
  <p>In package qdap, you can replace numeric represented numbers with words (e.g., 1001 becomes one thousand one), but not the other way around:</p>
  
  <pre><code>library(qdap)
  replace_number("I like 346457 ice cream cones.")
  [1] "I like three hundred forty six thousand four hundred fifty seven ice cream cones."
  </code></pre>