[R] Basic function help

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri May 12 12:56:09 CEST 2006


SUMANTA BASAK wrote:

> 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)
> }
> 
> Does this work in "R"?


What about trying it out yourself or reading the docs rather than 
wasting bandwidth and asking thousands of readers for help wasting their 
time?

 > PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html


Short answer: No

Long answer: Works neither in R nor in S-PLUS unless your correct the 
typo. After fixing the typo, it will work in both.

Uwe Ligges


> 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




More information about the R-help mailing list