[R] as.numeric(".") returns 0

Paul Johnson paulj at stats.gla.ac.uk
Thu Jun 12 13:12:19 CEST 2008

In R version 2.7.0 (2008-04-22) as.numeric(".") returns zero.

> as.numeric(".")
[1] 0

This must be a bug. Splus and previous versions of R (<= 2.6.0) return NA,
as you might expect.

I'm running R version 2.7.0 (2008-04-22) on Windows XP.


Paul Johnson
Robertson Centre for Biostatistics
University of Glasgow
Glasgow G12 8QQ, UK
paulj at stats.gla.ac.uk

More information about the R-help mailing list