Re: [R] Counterpart for Matlab's 'feval'?

From: Robin Hankin <r.hankin_at_noc.soton.ac.uk>
Date: Fri 24 Jun 2005 - 19:24:18 EST

Hello Fredrik

do.call() constructs and executes a function call from the name of

      the function and a list of arguments to be passed to it.

R's equivalent to fminsearch is optim() and that of fmin is optimize()

HTH [neither of these are in R-and-octave2.txt, which I really really ought to update]

rksh

On Jun 24, 2005, at 10:14 am, Fredrik Thuring wrote:

>
> Hi!
>
> I've just begun writing a program that searches for the minimum of a
> function with golden section search. In order to do this in a nice way
> I
> need a function that takes a function name and an argument and returns
> the
> function value for that argument, i .e just like Matlab's 'feval'. Is
> there any?
>
> Thanks before hand!
>
> Best regards,
> Fredrik Thuring, Codan Insurance A/S Research Department
>
>
> -----------------------------------------------------------------------
> -------
> This e-mail and any attachment may be confidential and may also be
> privileged.
> If you are not the intended recipient, please notify us immediately
> and then
> delete this e-mail and any attachment without retaining copies or
> disclosing
> the contents thereof to any other person.
> Thank you.
> -----------------------------------------------------------------------
> -------
> [[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
>
>

--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743

______________________________________________
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 Jun 24 19:27:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:02 EST