ascii icon indicating copy to clipboard operation
ascii copied to clipboard

`decimal.mark` parameter does not work (?)

Open daroczig opened this issue 14 years ago • 3 comments

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 avatar Dec 17 '11 21:12 daroczig

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.

daroczig avatar Dec 17 '11 21:12 daroczig

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

Thanks.

eusebe avatar Dec 19 '11 14:12 eusebe

Thank you really much, @eusebe !

daroczig avatar Dec 19 '11 14:12 daroczig