s-news
[Top] [All Lists]

Splus returns NULL

To: s-news@lists.biostat.wustl.edu
Subject: Splus returns NULL
From: Dennis Fisher <fisher@plessthan.com>
Date: Fri, 19 Oct 2007 07:00:56 -0700
In-reply-to: <20071019102007.3EBCC127B7A@smtp.biostat.wustl.edu>
References: <20071019102007.3EBCC127B7A@smtp.biostat.wustl.edu>
Colleagues

This is probably remarkably simple but I cannot find the answer.  When a conditional statement tests as negative, Splus (version 7.0.0 running on RedHat Linux) returns NULL.

for example:


X <- T
if (!X) cat("hello")

returns NULL.  I have tested options(warn=-1) and options(echo=F) to no avail.  In R, the same commands return nothing.

Any ideas how to prevent the NULL returns?

Dennis




Dennis Fisher MD

P < (The "P Less Than" Company)

Phone: 1-866-PLessThan (1-866-753-7784)

Fax: 1-415-564-2220

www.PLessThan.com





<Prev in Thread] Current Thread [Next in Thread>