JLObjR¶
jobject.spad line 721 [edit on github]
Convenience domain for Julia R objects that are used within Julia, and not directly by the underlying FriCAS Common Lisp. The RCall package has to be installed in Julia. Note that the RCall Julia package uses a similar scheme for Julia R objects to the one of jlFriCAS for JLObjectType references.
- #: % -> NonNegativeInteger
from Aggregate
- coerce: % -> JLObject
from JLObjectType
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: Float -> %
coerce(f)coercesfto a JuliaRobject.
- coerce: Integer -> %
coerce(i)coerces the integerito a JuliaRobject.
- coerce: String -> %
coerce(str)coerces the stringstrto a JuliaRstring object.
- convert: % -> String
from ConvertibleTo String
- elt: (%, Integer) -> %
elt(obj, ind)returns the element at index ind ofobj.- elt: (%, Integer) -> JLObject
from JLObjectAggregate
- elt: (%, JLSymbol) -> %
elt(obj, sym)returns the property/elementsymofobj.- elt: (%, JLSymbol) -> JLObject
from JLObjectAggregate
- jlAbout: % -> Void
from JLObjectType
- jlApply: (String, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %, %) -> JLObject
from JLObjectType
- jlApply: (String, %, %, %, %, %) -> JLObject
from JLObjectType
- jlDisplay: % -> Void
from JLObjectType
- jlDump: JLObject -> Void
from JLObjectType
- jlFieldNames: % -> JLObject
from JLObjectType
- jlGetField: (%, JLSymbol) -> JLObject
from JLObjectType
- jlGetJuliaIndex: % -> String
from JLObjectType
- jlGetProperty: (%, JLSymbol) -> JLObject
from JLObjectType
- jlId: % -> Integer
from JLObjectType
- jlimref: String -> %
from JLObjectType
- jlNames: % -> JLObject
from JLObjectType
- jlObject: () -> String
from JLObjectType
- jlPropertyNames: % -> JLObject
from JLObjectType
- jlRApply: (String, %) -> %
jlRApply(func, robj)applies theRfunctionfuncform the module __main__ to theRobject robj. For example:jlRApply("abs", (-2)::JLObjR) jlREval "mtcars"; jlRApply("summary", \%)
- jlRApply: (String, %, %) -> %
jlRApply(func, robj1, robj2)applies theRfunctionfuncform the module __main__ to theRobjectsrobj1androbj2.
- jlRApply: (String, %, %, %) -> %
jlRApply(func, robj1, robj2, robj3)applies theRfunctionfuncform the module __main__ to theRobjectsrobj1,robj2androbj3.
- jlRApply: (String, %, %, %, %) -> %
jlRApply(func, robj1, robj2, robj3, robj4)applies theRfunctionfuncform the module __main__ to theRobjectsrobj1,robj2,robj3androbj4.
- jlRApply: (String, %, %, %, %, %) -> %
jlRApply(func, robj1, robj2, robj3, robj4, robj5)applies theRfunctionfuncform the module __main__ to theRobjectsrobj1,robj2,robj3,robj4androbj5.
- jlRConvert: (String, %) -> JLObject
jlRConvert(type, robj)converts theRobject robj to the Juliatype‘type’.
- jlRCopy: % -> JLObject
jlRCopy(robj)returns a Julia object copy of theRobjectrobjif possible. Use jlType to know the resulting type ofrobjif necessary. For example:robj:=jlREval "mtcars"; jlRCopy robj
- jlRDocumentation: String -> JLObject
jlRDocumentation(str)displays theRdocumentation for the stringstr. Use'q'to quit the help viewer.
- jlRef: % -> SExpression
from JLObjectType
- jlref: String -> %
from JLObjectType
- jlREval: % -> %
jlREval(rexpr)evaluates theRexpressionrexprin the JuliaRenvironment.
- jlREval: JLObject -> %
jlREval(obj)evaluates the expressionobjas a Julia object in the JuliaRenvironment. For example:jlREval "mtcars"
- jlRParse: String -> %
jlRParse(str)parses theRexpressionstrand returns it as a JuliaRobject. Can be evaluated using the jlREval function for example.
- jlRPrint: % -> Void
jlRPrint(robj)prints theRrepresentation ofrobj.
- jlRType: % -> %
jlRType(robj)returns theRtype of the JuliaRobjectrobj.
- jlText: (%, String) -> List String
from JLObjectType
- jlType: % -> Symbol
from JLObjectType
- jr: JLObject -> %
jr(obj)returnsobjas a JuliaRobject. This is the preferred method. For example:a:= nrand(10,4) b := jr(a::JLMatrix(JLObjFloat64)) jlRApply("prcomp", b)
- jr: String -> %
jr(str)coerces the stringstrto a JuliaRobject using the Julia @R_str macro. Use jlDisplay(robj) to display theRobject robj if necessary. For example:jr "optim(0, $(x -> x-cos(x)), method='L-BFGS-B')" ret:= jlRCopy \% qelt(ret,par), qelt(ret,value)
- latex: % -> String
from SetCategory
- less?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- missing?: % -> Boolean
from JLObjectType
- more?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- mutable?: % -> Boolean
from JLObjectType
- nothing?: % -> Boolean
from JLObjectType
- qelt: (%, Integer) -> %
qelt(obj, ind)returns the element at index ind ofobj.- qelt: (%, Integer) -> JLObject
from JLObjectAggregate
- qelt: (%, JLSymbol) -> %
qelt(obj, sym)returns the property/elementsymofobj. No checks are done regarding the existence of thesymproperty. If it does not exist, Julia throws an error.- qelt: (%, JLSymbol) -> JLObject
from JLObjectAggregate
- size?: (%, NonNegativeInteger) -> Boolean
from Aggregate