to_number: translate spanish spelled quantities into their integer...

View source: R/to_number.R

to_numberR Documentation

translate spanish spelled quantities into their integer counterparts.

Description

Allows you to translate to integer numerical words spelled in spanish. Text must be previously cleaned & removed extraneous words or symbols Quantities MUST be written in a correct Spanish (this is not a grammar tool) The upper limit is up to the millions range. Cents must be removed.

Usage

to_number(x)

Arguments

x

A spanish spelled number.

Examples

to_number("mil trescientos noventa y dos")

1392

## Example dataframe is provided: cantidades

cantidades$var3 <- lapply(cantidades$var2, to_number)


verajosemanuel/ESmisc documentation built on Jan. 4, 2023, 12:37 p.m.