I can change the decimal character from output using:
> 1/2
[1] 0.5
> options(OutDec = ',')
> 1/2
[1] 0,5
But, this change does not affect sprintf()
function.
> sprintf('%.1f', 1/2)
[1] "0.5"
So, my question is: There is an easy way to change it (the decimal character)? I think that I can't use a 'simple' RE because not every .
need be traded by ,
.
I don't have any idea of how to do it, so I can't say what I've already done.