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.
ligges@statistik.uni-dortmund.de
2004-Jan-10 16:30 UTC
[Rd] return() undocumented (PR#6424)
Scot@wilcoxon.org wrote:> Full_Name: Scot Wilcoxon > Version: 1.8.1 > OS: Linux > Submission from: (NULL) (209.98.144.16) > > > return() is not documented.No, it is documented: on the same help page as function()! Try ?return.> 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.See the "Details" Section of ?return. Also, there s no "Reference" Section, but a "References" Section for citing articles and books (not help pages), and a "See Also" Section for citing help pages, but it doesn't make sense to cite the help page itself. Uwe Ligges> ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>>>>> "Scot" == Scot <Scot@wilcoxon.org> >>>>> on Sat, 10 Jan 2004 16:12:49 +0100 (CET) writes:Scot> Full_Name: Scot Wilcoxon Version: 1.8.1 OS: Linux Scot> Submission from: (NULL) (209.98.144.16) Scot> return() is not documented. huuuh ? (see below) Scot> It should also be mentioned in the R Reference section Scot> for function(). Scot> Apparently the last result of a Scot> function is the return value from a function, except Scot> when the function is terminated with a return() with Scot> an argument. ?return does give the correct page, and the "Details" section does talk about this, right ?
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