Re: [Rd] numerics from a factor

2013-03-19 Thread Terry Therneau
Thanks Martin. I had already changed the second argument to getOption. By the way, per an off list comment from Brian R the bug I was addressing won't affect anyone using R as shipped; the default decimal separator is "." whatever the region. It only bit those who set the OutDec option themse

Re: [Rd] numerics from a factor

2013-03-19 Thread Martin Maechler
> Ulrike Grömping > on Sat, 16 Mar 2013 13:04:07 +0100 writes: > Hi Terry, you can use type.convert instead of as.numeric > for numbers with decimals: > type.convert(levels(factor(1:6/2)), dec=unlist(options("OutDec"))) > Best, Ulrike a late and minor remark: If yo

Re: [Rd] numerics from a factor

2013-03-16 Thread Ulrike Grömping
Hi Terry, you can use type.convert instead of as.numeric for numbers with decimals: type.convert(levels(factor(1:6/2)), dec=unlist(options("OutDec"))) Best, Ulrike Am 16.03.2013 12:00, schrieb r-devel-requ...@r-project.org: Date: Fri, 15 Mar 2013 12:47:01 -0500 From: Terry Therneau To:"r-dev