[R] How to test for NULL?

From: Olivier Lefevre <lefevrol_at_yahoo.com>
Date: Thu, 24 Apr 2008 23:18:46 +0200

x == NULL returns logical(0) instead of FALSE or TRUE as you might expect and I cannot find the right way to write this test in R.

Thanks in advance for any hint,

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 24 Apr 2008 - 21:34:56 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 24 Apr 2008 - 23:30:33 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