regexpr

  1. TheEcologist

    gregexpr negative numbers and decimals

    Dear Bots, Raptors and Humans, I've got a little issue, I'm extracting numbers from strings with the following code: textstring<-c("the limits are -100 to 100") match<- gregexpr('[0-9]+',textstring) limits <- regmatches(textstring,match) Which works file however it does not...