Skip to contents

Term(f, ...) applies f to the arguments symbolically: a string names an undefined (or registered) symbolic function, an R function such as sin or `+` is called on the arguments. It plays the role of SymbolicUtils' Term.

Usage

Term(f, ...)

Arguments

f

A function name or an R function.

...

Arguments.

Value

A sym expression.

Examples

x <- Parameter("x")
Term("f", x, 2)
#> f(x, 2)
Term(sin, x)
#> sin(x)