word2num: Function to check the variable null or NA

Description Usage Arguments Details Value Examples

View source: R/help_cost_analysis_functions.R

Description

Function to check the variable null or NA

Usage

1
word2num(word)

Arguments

word

word for the number

Details

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

Value

return the number

Examples

1
2
3
answer <- word2num("one forty one")
answer <- word2num("forty one and five hundred")
answer <- word2num("five thousand two hundred and eight")

packDAMipd documentation built on March 3, 2021, 5:07 p.m.