Skip to content

decimal.mark parameter does not work (?) #12

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

Open
daroczig opened this issue Dec 17, 2011 · 3 comments
Open

decimal.mark parameter does not work (?) #12

daroczig opened this issue Dec 17, 2011 · 3 comments

Comments

@daroczig
Copy link

I tried to export some tables with ascii by setting the decimal.mark to , (Hungarian standard), but did not succeed:

> ascii(matrix(runif(2),2,2), digits=3, decimal.mark=',')
------- -------
0.989   0.989  
0.899   0.899  
------- -------

What am I missing? Sorry for lame question.

@daroczig
Copy link
Author

It seems that using your nice tocharac function inside an ascii call resolves this problem:

> ascii(tocharac(matrix(runif(2),2,2), digits=3, decimal.mark=','))
------- -------
0,116   0,116  
0,173   0,173  
------- -------

Although I am still not sure if this is the standard way of specifying decimal.mark.

@eusebe
Copy link
Owner

eusebe commented Dec 19, 2011

No, you're right, it is a bug... I will fix that in a next release.

Thanks.

@daroczig
Copy link
Author

Thank you really much, @eusebe !

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