Class representing a leaf value in an expression
Methods
Method new()
Wrap a raw R value in a scidb.expression object
Method type()
Returns the type of the expression as a string
Returns the R value bound by this scidb.expression
Returns the distinct symbols used in the expression
Returns
vector of symbol names
Method unary()
Whether or not the expression is a function of (at most) a single symbol
Returns
a boolean value indicating unary or non-unary
Method unary_composite()
Whether or not the expression is unary or a boolean AND or OR of
two other in-turn unary composite expressions
Returns
a boolean value indicating unary-composite or not
Renames the symbols in the expression according to replacements in the arguments
Arguments
...
optional list of string replacements for each symbol in the expression
Method to_r()
Convert the expression to an R string, with optional symbol substitutions
Arguments
...
optional list of string replacements for each symbol in the expression
Returns
evaluation of this predicate as a single R string
Method to_afl()
Convert the expression to an AFL string, with optional symbol substitutions
Arguments
...
optional list of string replacements for each symbol in the expression
Returns
evaluation of this predicate as a single AFL string
Method clone()
The objects of this class are cloneable with this method.
Arguments
deep
Whether to make a deep clone.