Learn R Programming

packDAMipd (version 0.2.0)

word2num: Function to check the variable null or NA

Description

Function to check the variable null or NA

Usage

word2num(word)

Arguments

word

word for the number

Value

return the number

Details

https://stackoverflow.com/questions/18332463/convert-written-number-to-number-in-r

Examples

Run this code
# NOT RUN {
answer <- word2num("one forty one")
answer <- word2num("forty one and five hundred")
answer <- word2num("five thousand two hundred and eight")
# }

Run the code above in your browser using DataLab