CLOSED_FORM | R Documentation |
This is the base class of closed form expression, inherited from
bandicoot::BASE. It is an environment with S3 class bandicoot_oop
.
For instantiation, any simple expressions can be provided,
as long as all the symbols exist in the current environment. Note that it
tries to evaluate ALL the atomic symbols in the expression during
initialization, and store the values in the object. Hence, calls like
a$b
will also be decomposed as $
, a
and b
, where b
will be
interpreted as a variable "b" exists in the current environment. Therefore,
use ~a[["b"]]
instead of ~a$b
. And pre-define function like
myfun = function() 1
, then use it in the expression ~myfun()
.
closed_form(
expr,
env = new.env(parent = parent.frame()),
init_call = sys.call()
)
expr |
Formula. Only the right hand side of the last |
env |
Environment. The instance environment. |
init_call |
Call. Contents of the |
An instance environment.
closed_form()
: Class constructor, same as CLOSED_FORM$instantiate()
.
Direct:
bandicoot::BASE
E:
CLOSED_FORM$expr
S:
CLOSED_FORM$sym
CLOSED_FORM$sym_name
CLOSED_FORM$sym_type
A:
CLOSED_FORM$as_dataframe
CLOSED_FORM$ast
C:
CLOSED_FORM$compute
G:
CLOSED_FORM$gen
I:
CLOSED_FORM$..init..
L:
CLOSED_FORM$..len..
S:
CLOSED_FORM$..str..
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.