Learn R Programming

nonmemica (version 0.9.1)

text2decimal: Convert Text to Decimal

Description

Scavenge text for first reasonably-inferred numeric value.

Usage

text2decimal(x)

Arguments

x

character

Value

numeric

See Also

Other util: %contains%, as.best, enclose, locf, padded, parens, pool, runhead

Examples

Run this code
# NOT RUN {
text2decimal('30 mg')
# }

Run the code above in your browser using DataLab