[Rd] missing() (PR#1096)

hosking@watson.ibm.com hosking@watson.ibm.com
Wed, 19 Sep 2001 16:38:54 +0200 (MET DST)


Full_Name: J. R. M. Hosking
Version: 1.3.0
OS: Windows 2000
Submission from: (NULL) (198.81.209.16)


R documentation suggests that if a function argument x is omitted,
missing(x) should return TRUE even if x is subsequently assigned a value.
This happens in S-plus.  But in R:

> test
function(x){
print(missing(x))
if(missing(x)) x<-0
print(missing(x))
invisible()
}
> test()
[1] TRUE
[1] FALSE
> 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._