Define_sVar: R6 class for parsing and evaluating node R expressions.

Description Usage Format Details Methods

Description

This R6 class will parse and evaluate (in the environment of the input data) the node formulas defined by function node. The node formula expressions (stored in exprs_list) are evaluated in the environment of the input data.frame.

Usage

1

Format

An R6Class generator object

Details

Methods

new(netind_cl

Instantiates new object of class Define_sVar. netind_cl is the input network stored in an object of class NetIndClass.

set.new.exprs(exprs_list)

Sets the internal node formula expressions to the list provided in exprs_list.

eval.nodeforms(cur.node, data.df)

Evaluate the expressions one by one, returning a list with evaluated expressions. cur.node is the current node object defined with function node and data.df is the input data.frame.

df.names(data.df)

List of variables in the input data data.df gets assigned to a special variable (ANCHOR_ALLVARNMS_VECTOR_0).


tmlenet documentation built on May 29, 2017, 2:22 p.m.

Search within the tmlenet package
Search all R packages, documentation and source code