From p.dalgaard at biostat.ku.dk  Sat Jan 10 16:37:38 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Sat Jan 10 16:35:41 2004
Subject: [Rd] return() undocumented (PR#6424)
In-Reply-To: <20040110151249.285AF10456@slim.kubism.ku.dk>
References: <20040110151249.285AF10456@slim.kubism.ku.dk>
Message-ID: <x2isjj4xx9.fsf@biostat.ku.dk>

Scot@wilcoxon.org writes:

> Full_Name: Scot Wilcoxon
> Version: 1.8.1
> OS: Linux
> Submission from: (NULL) (209.98.144.16)
> 
> 
> return() is not documented.
> 
> It should also be mentioned in the R Reference section for function().
> Apparently the last result of a function is the return value from a function,
> except when the function is terminated with a return() with an argument.

Eh??? What does help(return) say on your system? Mine has

Usage:

     function( arglist ) expr
     return(value)
......
     If 'value' is missing, 'NULL' is returned.  If it is a single
     expression, the value of the evaluated expression is returned.

     If the end of a function is reached without calling 'return', the
     value of the last evaluated expression is returned.


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] return() undocumented (PR#6424)
Peter Dalgaard