title: How to convert a vector of string into vector of integers in R?
body: <p>I have a vector string which looks like this</p>
  
  <pre><code>A &lt;- c("162&amp;u", "139&amp;u", "87&amp;us", "175&amp;u", "54&amp;us", "25&amp;us", "46&amp;us","16650", "16776", "16689", "16844")
  </code></pre>
  
  <p>How do I convert it into  a vector of numeric arrays that looks like this in R?</p>
  
  <pre><code> A &lt;- c(162,139,87, 175, 54,25,46,16650, 16776, 16689, 16844)
  </code></pre>