[R] Basic function help

Petr Pikal petr.pikal at precheza.cz
Fri May 12 12:57:03 CEST 2006


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 at yahoo.co.in>
To:             	R HELP <r-help at 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 at 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 at precheza.cz




More information about the R-help mailing list