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

From: Paul Johnson <paulj_at_stats.gla.ac.uk>
Date: Thu, 12 Jun 2008 12:12:19 +0100

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
http://www.stats.gla.ac.uk/~paulj/index.html http://www.rcb.gla.ac.uk/

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 12 Jun 2008 - 11:13:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 12:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive