Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma(s) used in values less than a thousand when more than one value is present #3

Open
iembry-USGS opened this issue Dec 9, 2016 · 1 comment

Comments

@iembry-USGS
Copy link

If I have one value that has only hundreds and not thousands, then to_currency works.

to_currency(804.32, currency_symbol = "$")
[1] "$804.32"

If I have more than one value and some have more than the thousands place and others have less than the thousands place, then all numbers are given the comma.

to_currency(toc, currency_symbol = "$")
# [1] "$ 10,093.00" "$ , 20.32" "$139,012.00" "$ ,804.32"

Can you add a check for each value to make sure that the comma is warranted?

Thank you.

@Ironholds
Copy link
Owner

Could you provide 'toc'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants