ascii
ascii copied to clipboard
`decimal.mark` parameter does not work (?)
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.
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.
No, you're right, it is a bug... I will fix that in a next release.
Thanks.
Thank you really much, @eusebe !