Skip to content

missing() (PR#1096)

1 message · hosking@watson.ibm.com

#
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:
function(x){
print(missing(x))
if(missing(x)) x<-0
print(missing(x))
invisible()
}
[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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._