s-news
[Top] [All Lists]

Re: Splus returns NULL

To: <fisher@plessthan.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Splus returns NULL
From: <Dario.Ciraki@ubs.com>
Date: Fri, 19 Oct 2007 16:05:03 +0100
In-reply-to: <3DD44318-62C7-4AF0-9DB7-BD1D73E93070@plessthan.com>
References: <20071019102007.3EBCC127B7A@smtp.biostat.wustl.edu> <3DD44318-62C7-4AF0-9DB7-BD1D73E93070@plessthan.com>
Thread-index: AcgSWLAwuOrtluuQQzeqHsdT+dQpZgACK2pA
Thread-topic: [S] Splus returns NULL
Dennis, try to stay away from "T", it is reserved for logical true.
Rgd.
DC


From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Dennis Fisher
Sent: 19 October 2007 15:01
To: s-news@lists.biostat.wustl.edu
Subject: [S] Splus returns NULL

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





Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.
        
E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.
<Prev in Thread] Current Thread [Next in Thread>