Hi, I have a program written in R which is good on the version 1.2, but for the fallowing versions of R, an error always is at the same place. That is at the level of the fallowing line: Sur<- getInitial(res2[m:M,2]~SSasymp(res2[m:M,1],Asymp,resp0,lrc),data=res2) Error in eval(expr,envir,enclos):numeric envir arg not of length one I don't know at all this langage for the instant. Thanks, Christelle ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,15 ? TTC/min) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, May 02, 2002 at 11:21:13AM +0200, dantec at netcourrier.com wrote:> > Hi, > > > I have a program written in R which is good on the version 1.2, but for > the fallowing versions of R, an error always is at the same place. > That is at the level of the fallowing line: > Sur<- > getInitial(res2[m:M,2]~SSasymp(res2[m:M,1],Asymp,resp0,lrc),data=res2) > Error in eval(expr,envir,enclos):numeric envir arg not of length one > > > I don't know at all this langage for the instant. > > Thanks, > > > > ChristelleDear Christelle, The error occured while executing the function called getInitial. You may try either to contact the author of this function or to do 'traceback()' and learn a bit of R (note: Emmanuel Paradis contributed a translation of 'R for beginners' http://cran.r-project.org/other-docs.html ) Hopin' it helps, Laurent -------------------------------------------------------------- Laurent Gautier CBS, Building 208, DTU PhD. Student D-2800 Lyngby,Denmark tel: +45 45 25 24 85 http://www.cbs.dtu.dk/laurent -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
dantec at netcourrier.com writes:> I have a program written in R which is good on the version 1.2, but for > the fallowing versions of R, an error always is at the same place. > That is at the level of the fallowing line: > Sur<- > getInitial(res2[m:M,2]~SSasymp(res2[m:M,1],Asymp,resp0,lrc),data=res2) > Error in eval(expr,envir,enclos):numeric envir arg not of length one> I don't know at all this langage for the instant.It is uncommon to use getInitial outside of nls. Is there a reason you are not using nls(res2[m:M,2]~SSasymp(res2[m:M,1],Asymp,resp0,lrc),data=res2) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._