Re: [R] optim error

From: Karl Ove Hufthammer <Karl.Hufthammer_at_math.uib.no>
Date: Mon, 02 Jun 2008 08:55:00 +0200

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

______________________________________________
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.
Received on Mon 02 Jun 2008 - 06:59:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 07:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive