Dear All,

 

I noticed that optimize in R 2.4.0 on Windows XP does not seem to work
if I use "m" as an argument in my function for example:

 

> optimize(function(x,m) x^m,interval=c(0,1),m=2)

Error in f(arg, ...) : argument "m" is missing, with no default

 

 

But! If I change the argument to "a" then it works.

 

> optimize(function(x,a) x^a,interval=c(0,1),a=2)

$minimum

[1] 6.610696e-05

 

$objective

[1] 4.37013e-09

 

> 

 

Why?

 

 

Steve.


	[[alternative HTML version deleted]]

