Let\'s imagine you have a string:
strLine <- \"The transactions (on your account) were as follows: 0 3,000 (500) 0 2.25 (1,200)\"
Is the
What for me worked perfectly when working on single strings in a data frame (One string per row in same column) was the following:
data frame
library(taRifx) DataFrame$Numbers<-as.character(destring(DataFrame$Strings, keep="0-9.-"))
The results are in a new column from the same data frame.