[R] optim error

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Mon Jun 2 08:55:00 CEST 2008


keunhchoi at gmail.com:

> p0<- c(f=0.87, b=0.1, c=150)
> f<-p[1]; b<-p[2]; c<-p[3]

Do *not* redefine the meaning of the function c() to 150, or to p[3].
If you do, very few things in R will continue to work properly!

-- 
Karl Ove Hufthammer



More information about the R-help mailing list