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: builtins.object

Class to provide methods common to all RObject instances

r_repr()[source]

String representation for an object that can be directly evaluated as R code.

rclass

R class for the object, stored as an R string vector.

class rpy2.robjects.RObject

Bases: rpy2.robjects.robject.RObjectMixin, rpy2.rinterface.Sexp

Base class for all R objects.

Previous topic

r: the instance of R

Next topic

Environments

This Page