addMemoization | R Documentation |
Creates a copy of an existing function such that its results are memoized.
## Default S3 method: addMemoization(fcn, envir=parent.frame(), ...)
fcn |
A |
envir |
The |
... |
Additional arguments for controlling the memoization,
i.e. all arguments of |
The new function is setup such that the the memoized call is done in the environment of the caller (the parent frame of the function).
If the function
returns NULL
, that particular function call is
not memoized.
Returns a function
.
Henrik Bengtsson
The returned function utilized memoizedCall
() internally.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.