Re: [R] Error in f(x, ...) : could not find function "f2"

2011-08-30 Thread Uwe Ligges
On 30.08.2011 14:31, . . wrote: Hi all, I am getting the erro showed in the subject. I was strange the this becomes to happen after a computer restar. I think after the restart another function f2 was in memory and it scape from me. func<- Vectorize(FUN= function(y, frac, rate, sad, samp="

[R] Error in f(x, ...) : could not find function "f2"

2011-08-30 Thread . .
Hi all, I am getting the erro showed in the subject. I was strange the this becomes to happen after a computer restar. I think after the restart another function f2 was in memory and it scape from me. func <- Vectorize(FUN= function(y, frac, rate, sad, samp="Poisson", trunc=0, ...){

Re: [R] error in f(x,...)

2010-07-28 Thread Gray Calhoun
Hi Nathalie, It should be "subdivisions" in the line: > for (i in 1:length(x)){res[i] <- integrate(f,x[i],2.967, > subdivision=2000)$value} R is trying to pass the argument "subdivision" to your function f. --Gray On Wed, Jul 28, 2010 at 2:27 PM, Nathalie Gimenes wrote: > Dear all, > > I tr

[R] error in f(x,...)

2010-07-28 Thread Nathalie Gimenes
Dear all, I tried once to create one variable called bip such that: bip <- cip + (1/f(cip))*fi(f,cip) And this was working. But now, doing the same thing I did before, the software shows me the following message: Error in f(x, ...) : unused argument(s) (subdivision = 2000) I have the variable c