Added to_words2 function to convert from number to spanish words #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A function to_words2() was created to overcome some limitations and errors of to_words.
to_words2 can take a number up to 1e22 or a string of digits up to 60 digits long, and convert it to words, thus expanding the capabilities of to_words.
It also fixes some errors of to_words, particularly the conversion of quantities ending in "millions", that were converted to "millones y mil" by to_words().
devtools::document() was run in order to update the documentation of the package, but some adjustments may be needed in the original functions, as the following error was displayed:
✖ spanish.R:28:
@docType "package"
is deprecated.ℹ Please document "_PACKAGE" instead.