Skip to content
Prev 36192 / 63424 Next

Associative array?

On Thu, Mar 11, 2010 at 06:09:09PM -0600, Ben wrote:
[...]
Let me add a comment on the question of an invertible conversion of double
values to character type. The function as.character() intentionally does
not keep the exact value and performs some rounding. However, conversion
of a double x to character type, which preserves the number exactly, may
be obtained, for example, using
  formatC(x, digits=17, width=-1)

Petr Savicky.