Skip to content
Back to formatted view

Raw Message

Message-ID: <6ru2xkmp9s.fsf@verdi.stat.wisc.edu>
Date: 1999-01-21T18:53:03Z
From: Douglas Bates
Subject: nlm question
In-Reply-To: John Logsdon's message of "Thu, 21 Jan 1999 17:09:51 +0000 (GMT)"

>>>>> "John" == John Logsdon <j.logsdon at lancaster.ac.uk> writes:

  John> Hello again Is there any way (or an alternative non-linear
  John> minimiser) that arguments to the function called in nlm can be
  John> passed in version 0.62.4?  Like (I believe) nlmin in a well
  John> known other program or optimise in R.  Do we use global
  John> variables?  Surely not!

I think the preferred answer is to use function closures.  See demo(scoping).
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._