Re: [R] R is GNU S, not C.... [was "how to get or store ....."]

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Tue 06 Dec 2005 - 23:56:37 EST

On Tue, 2005-12-06 at 13:43 +0100, Martin Maechler wrote:
> >>>>> "vincent" == vincent <vincent@7d4.com>
> >>>>> on Tue, 06 Dec 2005 11:09:36 +0100 writes:
>
> vincent> shanmuha boopathy a écrit :
> >> a<-function(a,b,c,d)
> >> {
> >> k=a+b
> >> l=c+d
> >> m=k+l
> >> }
> >>
> >> in this example the function will return only the value of "m"
> >> ...But I like to extract the values of "l" & "k" also.........
> >> which command to use for storing or for extracting those intermediate value.......
>
> vincent> may I suggest, inside your function
>
> vincent> res = c(k, l, m);
> vincent> return(res);
>
> please, please, these trailing ";" are *so* ugly.
> This is GNU S, not C (or matlab) !
>
> {and I have another chain of argments why "<-" is so more
> expressive than "=" but I'll be happy already if you could
> drop these ugly empty statements at the end of your lines...
>
> vincent> # also ... read some intro docs !
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Dec 07 00:23:55 2005

This archive was generated by hypermail 2.1.8 : Wed 07 Dec 2005 - 02:29:13 EST