Re: [R] Basic function help

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 12 May 2006 - 20:57:03 EST


Hi

On 12 May 2006 at 11:02, SUMANTA BASAK wrote:

Date sent:      	Fri, 12 May 2006 11:02:44 +0100 (BST)
From:           	SUMANTA BASAK <r_econometrics@yahoo.co.in>
To:             	R HELP <r-help@stat.math.ethz.ch>
Subject:        	[R] Basic function help

> Hi All,
> Can you please tell me if i write a function, and want to return
> certain object, can "R" work on it? I know this works in S-Plus.
>
> function(x)
> { .......
> a<-......
> reaturn(a)

return(a) is better :-)

> }
>
> Does this work in "R"?

Yes

>
> Thanks,
> Sumanta.
>
>
> ---------------------------------
> What makes Sachin India's highest paid sports celebrity?, Share your
> knowledge on Yahoo! India Answers Send instant messages to your
> online friends - NOW [[alternative HTML version deleted]]
>
> ______________________________________________
> 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

Petr Pikal
petr.pikal@precheza.cz



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 Fri May 12 20:59:55 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 May 2006 - 22:10:08 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.