[R] calculating using user provided function
Charles C. Berry
cberry at tajo.ucsd.edu
Wed Jun 23 23:20:38 CEST 2010
On Wed, 23 Jun 2010, suman dhara wrote:
> Sir,
> I'm writing a program in R that requires the user to provide a funtion. On
> the basis of the user provided function the program will proceed further and
> give results. Is there any technique in R that allow a user to give his own
> function and on the basis of that function the program will work.
Yes. See
An Introduction to R
Particularly the example at the end of
10.6.3 Recursive numerical integration
There are many more examples lurking in the code base, I suspect.
HTH,
Chuck
>
>
> Regards,
> Suman Dhara
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
More information about the R-help
mailing list