search for: cm_ffm

Displaying 5 results from an estimated 5 matches for "cm_ffm".

2017 Aug 02
4
Extracting numeric part from a string
Hi again, I am struggling to extract the number part from below string : "\"cm_ffm\":\"563.77\"" Basically, I need to extract 563.77 from above. The underlying number can be a whole number, and there could be comma separator as well. So far I tried below : > library(stringr) > str_extract("\"cm_ffm\":\"563.77\"", "[...
2017 Aug 03
2
Extracting numeric part from a string
... Or if you just want to stick with basic regex's without extra packages: > x <- "\"cm_ffm\":\"563.77\"" > sub("[^[:digit:]]*([[:digit:]]*.?[[:digit:]]*).*","\\1",x) [1] "563.77" Cheers, Bert On Wed, Aug 2, 2017 at 5:16 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: > >> On 3 Aug 2017, at 02:59, Christofer Bogas...
2017 Aug 03
0
Extracting numeric part from a string
...into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 2, 2017 at 5:59 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > ... Or if you just want to stick with basic regex's without extra packages: > >> x <- "\"cm_ffm\":\"563.77\"" >> sub("[^[:digit:]]*([[:digit:]]*.?[[:digit:]]*).*","\\1",x) > > [1] "563.77" > > Cheers, > Bert > > > > On Wed, Aug 2, 2017 at 5:16 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: >> &g...
2017 Aug 03
0
Extracting numeric part from a string
> On Aug 2, 2017, at 6:59 PM, Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > > Hi again, > > I am struggling to extract the number part from below string : > > "\"cm_ffm\":\"563.77\"" > > Basically, I need to extract 563.77 from above. The underlying number > can be a whole number, and there could be comma separator as well. > > So far I tried below : > >> library(stringr) > >> str_extract("\"cm_ffm...
2017 Aug 03
0
Extracting numeric part from a string
> On 3 Aug 2017, at 02:59, Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > > Hi again, > > I am struggling to extract the number part from below string : > > "\"cm_ffm\":\"563.77\"" > > Basically, I need to extract 563.77 from above. The underlying number > can be a whole number, and there could be comma separator as well. > > So far I tried below : > >> library(stringr) > >> str_extract("\"cm_ffm...