title: delete characters after first numeral /number in string in R
body: <p>I'm going through and cleaning a dataset that has location entries like : "Sarasota  Florida6h" I'm not sure why but all the strings have either 3 or 2 characters at the end starting with a number:</p>
  
  <pre><code>[413] "Los Angeles11h"                                      "Pittsburgh  PA1h"                                   
  [415] "London  UK18h"                                       "Mumbai  India19h"                                   
  [417] "Orange County CA1h"                                  "Columbus  OH2d"                                     
  [419] "4d"                                                  "Sarasota  Florida6h"                                
  [421] "Toronto9m"                                           "Adelaide Australia7h"                               
  [423] "Wayland  MA4h"                                       "Scottsdale AZ USA1h"                                
  [425] "Sydney  Australia6d"                                 "Connecticut  USA31m"                                
  [427] "United States5m"                                     "Boulder  Colorado12h"                               
  [429] "Berlin  Germany7h"                                   " India   Chaibasa1h"
  </code></pre>
  
  <p>I need a script to remove all letters after a numeral to clean these out:
  I've tried the below, but clearly, there's something wrong here.</p>
  
  <pre><code>follow_dat$loc &lt;- sapply(strsplit(follow_dat$Location, "\\[0-9]"), `[[`, 2)
  </code></pre>
  
  <p>Your kind assistance is appreciated.
  Mari</p>