Skip to content
Prev 48158 / 63424 Next

type.convert and doubles

On Tue, Apr 29, 2014 at 10:41:19AM +0200, Martin Maechler wrote:
+1 from me as well. Warning about loss of precision seems ok to me
as well, perhaps that could be phased in in the future.

Generally, I'd also suggest that conditions for implicit conversion
to the factor class should be progressively restricted, rather than
extended. This is because I've seen too many budding / not overly
type-aware R programmers running into trouble due to some variable
ending up containing a factor where they didn't anticipate that.
You can only hope they don't "figure out" to "fix this" by using
as.numeric in this case...

Best regards, Jan

  
    

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