powered by
Scavenge text for first reasonably-inferred numeric value.
text2decimal(x)
character
numeric
Other util: %contains%, as.best, enclose, locf, padded, parens, pool, runhead
%contains%
as.best
enclose
locf
padded
parens
pool
runhead
# NOT RUN { text2decimal('30 mg') # }
Run the code above in your browser using DataLab