CLOSED_FORM: CLOSED_FORM class environment

CLOSED_FORMR Documentation

CLOSED_FORM class environment

Description

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().

Usage

closed_form(
  expr,
  env = new.env(parent = parent.frame()),
  init_call = sys.call()
)

Arguments

expr

Formula. Only the right hand side of the last ~ will be kept as the final expression.

env

Environment. The instance environment.

init_call

Call. Contents of the ..init_call... It is recommended to leave it as default.

Value

An instance environment.

Functions

  • closed_form(): Class constructor, same as CLOSED_FORM$instantiate().

Class information

Parent classes

  • Direct:

    • bandicoot::BASE

New attributes

  • E:

    • CLOSED_FORM$expr

  • S:

    • CLOSED_FORM$sym

    • CLOSED_FORM$sym_name

    • CLOSED_FORM$sym_type

New methods

  • 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..


TengMCing/visage documentation built on Aug. 28, 2024, 3:27 p.m.