From harald.fekjar@basalmed.uio.no  Thu Mar  8 15:20:21 2001
From: harald.fekjar@basalmed.uio.no (harald.fekjar@basalmed.uio.no)
Date: Thu, 8 Mar 2001 16:20:21 +0100 (MET)
Subject: [Rd] as.numeric - Possible error (PR#870)
Message-ID: <200103081520.QAA10571@pubhealth.ku.dk>

Full_Name: Harald Fekjr
Version: 1.22
OS: Windows 
Submission from: (NULL) (158.36.132.220)


Dear R developers

Is this done with purpose...:

In R I get:
---
> as.numeric(" ")
[1] 0 

> as.integer(" ")
[1] 0 
---

While in the same in S-PLUS returns:
---
> as.numeric(" ")
[1] NA 

> as.integer(" ")
[1] NA
---

For my applications, the later (S-PLUS) definitely makes most sense, but you my
have some good reasons for your choose?
(Anyway it is quite dangers with these differences when porting applications).


Thanks for a wonderful program!

Harald Fekjr, Oslo, Norway

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] as.numeric - Possible error (PR#870)
harald.fekjar@basalmed.uio.no