This base class represents expressions involving unary operators.

# S4 method for UnaryOperator
name(x)

# S4 method for UnaryOperator
to_numeric(object, values)

Arguments

x, object

A UnaryOperator object.

values

A list of arguments to the atom.

Methods (by generic)

  • name(UnaryOperator): Returns the expression in string form.

  • to_numeric(UnaryOperator): Applies the unary operator to the value.

Slots

expr

The Expression that is being operated upon.

op_name

A character string indicating the unary operation.