R objects¶
The class rpy2.robjects.RObject
can represent any R object, although it will often
be used for objects without any more specific representation
in Python/rpy2 (such as Vector
,
functions.Function
, Environment
).
The class inherits from the lower-level
rpy2.rinterface.Sexp
and from rpy2.robjects.robject.RObjectMixin
, the later defining
higher-level methods for R objects to be shared by other higher-level
representations of R objects.
-
class
rpy2.robjects.robject.
RObjectMixin
[source]¶ Bases:
object
Class to provide methods common to all RObject instances
-
rclass
¶ R class for the object, stored as an R string vector.
-
slots
¶ Attributes of the underlying R object as a Python mapping.
The attributes can accessed and assigned by name (as if they were in a Python dict).
-
-
class
rpy2.robjects.
RObject
[source]¶ Bases:
rpy2.robjects.robject.RObjectMixin
,rpy2.rinterface.Sexp
Base class for all R objects.