Displaying 2 results from an estimated 2 matches for "ommmmm".
Did you mean:
hmmmmm
2017 Aug 23
4
Flummoxed by gsub().
...ale
for it nor any way to adjust my syntax to get what I want.
A bit of Googling led me to the information that
gsub("\\D","",x)
should work, and indeed it does, giving:
[1] "5" "10" "20" "5" "10" "20"
OMMMMM! (Apparently "\D" means *not* a digit.)
So I have *a* solution to my problem. However I would really like to
know why the <expletive deleted> the first idea I tried did not work and
what it is actually *doing*!
Anybody?
cheers,
Rolf Turner
--
Technical Editor ANZJS
Departme...
2017 Aug 23
0
Flummoxed by gsub().
...o get what I want.
>
> A bit of Googling led me to the information that
>
> gsub("\\D","",x)
>
> should work, and indeed it does, giving:
>
> [1] "5" "10" "20" "5" "10" "20"
>
> OMMMMM! (Apparently "\D" means *not* a digit.)
>
> So I have *a* solution to my problem. However I would really like to know why
> the <expletive deleted> the first idea I tried did not work and what it is actually
> *doing*!
>
> Anybody?
>
> cheers,
>
> Rol...