Skip to content
Prev 48089 / 63424 Next

type.convert and doubles

Yes, I'm also strongly in favor of having an option for this.  If
there was an option in base R for controlling this we would just use
that and get rid of the separate RProtoBuf.int64AsString option we use
in the RProtoBuf package on CRAN to control whether 64-bit int types
from C++ are returned to R as numerics or character vectors.

I agree that reasonable people can disagree about the default, but I
found my original bug report about this, so I will counter Robert's
example with my favorite example of what was wrong with the previous
behavior :

tmp<-data.frame(n=c("72057594037927936", "72057594037927937"),
name=c("foo", "bar"))
length(unique(tmp$n))
# 2
write.csv(tmp, "/tmp/foo.csv", quote=FALSE, row.names=FALSE)
data <- read.csv("/tmp/foo.csv")
length(unique(data$n))
# 1

          - Murray


On Sat, Apr 19, 2014 at 10:06 AM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:

Thread (30 messages)

Gregory R. Warnes type.convert and doubles Apr 11 Simon Urbanek type.convert and doubles Apr 11 Paul Gilbert type.convert and doubles Apr 11 McGehee, Robert type.convert and doubles Apr 17 Hadley Wickham type.convert and doubles Apr 17 Duncan Murdoch type.convert and doubles Apr 17 Murray Stokely type.convert and doubles Apr 17 Gabor Grothendieck type.convert and doubles Apr 17 Murray Stokely type.convert and doubles Apr 17 Paul Gilbert type.convert and doubles Apr 17 McGehee, Robert type.convert and doubles Apr 17 Martin Maechler type.convert and doubles Apr 19 Simon Urbanek type.convert and doubles Apr 19 Gabor Grothendieck type.convert and doubles Apr 19 Murray Stokely type.convert and doubles Apr 20 Gábor Csárdi type.convert and doubles Apr 20 Duncan Murdoch type.convert and doubles Apr 20 McGehee, Robert type.convert and doubles Apr 21 Martin Maechler type.convert and doubles Apr 22 Martin Maechler type.convert and doubles Apr 26 Gregory R. Warnes type.convert and doubles Apr 26 Hadley Wickham type.convert and doubles Apr 27 Duncan Murdoch type.convert and doubles Apr 27 Martin Maechler type.convert and doubles Apr 28 Peter Dalgaard type.convert and doubles Apr 29 Mark Bravington type.convert and doubles Apr 29 Martin Maechler type.convert and doubles Apr 29 Martin Maechler type.convert and doubles Apr 29 Martin Maechler type.convert and doubles Apr 29 Jan T. Kim type.convert and doubles Apr 29