See packages R.oo and proto.
If you wish to do it yourself, you want to utilize environments for this.
/Henrik
On Thu, Jul 8, 2010 at 6:52 AM, Paul Bailey pdbai...@umd.edu wrote:
I'm working with a large object that I want to modify slightly in a function.
Pass-by-reference would make a lot
...and for tracing memory allocations/duplications, see tracemem().
/Henrik
On Thu, Jul 8, 2010 at 9:14 AM, Henrik Bengtsson h...@stat.berkeley.edu wrote:
See packages R.oo and proto.
If you wish to do it yourself, you want to utilize environments for this.
/Henrik
On Thu, Jul 8, 2010 at
On Thu, Jul 8, 2010 at 12:52 AM, Paul Bailey pdbai...@umd.edu wrote:
I'm working with a large object that I want to modify slightly in a function.
Pass-by-reference would make a lot of sense, but I don't know how to do it.
I've searched this archive and thought that I can do something like
Dear Paul,
No I haven't tried to use L-BFGS-B algorithm with bounds. Let me check if a
variable change can be used on my problem.
Thanks
Christophe
Le 7 juil. 2010 à 19:49, Paul Bailey a écrit :
Have you considered using the optim function with L-BFGS-B for bounded
optimization.
As far as I know, the reference describing the algorithm is:
A. Wächter and L. T. Biegler.
On the implementation of a primal-dual interior point filter line
search algorithm for large-scale nonlinear programming.
Mathematical Programming, 106(1):25-57, 2006.
There are more references here:
I have *** attached *** an RData file containing an R object that
is acting strangely.
Try this in a fresh workspace. Do not load zoo or any other package.
We load the object, zz2, from the attached RData file. It is just
the number 1 with the class c(zooreg, zoo).
Now create an S3 print