Macaulay2 » Documentation
Packages » RInterface :: RFunction
next | previous | forward | backward | up | index | toc

RFunction -- R function

Synopsis

Description

An RFunction is a function that wraps around an R function specified by a string. Its arguments are converted to RObject's.

i1 : qnorm = RFunction "qnorm"

o1 = qnorm

o1 : RFunction
i2 : qnorm(0.025, "lower.tail" => false)

o2 = [1] 1.959964

o2 : RObject of type double

Methods that use an object of class RFunction :

Fixed objects of class RFunction :

For the programmer

The object RFunction is a self initializing type, with ancestor classes FunctionClosure < Function < Thing.