Search notes:

R objects

All R objects are built upon the native data structures:

Exploring R objects

The following functions are useful to explore the »internals« of an object:
Some functions allow to get some characteristics of the data itself:
See also the package lobstr

Attributes

All R objects, except the special NULL object, can have one or more attributes attached to it. These are stored as a pairlist.

Symbols

R Objects are accessed via symbols or variables (Is variable the same thing as a symbol?).
Symbols are also objects.
Symbols have the mode name, storage mode symbol and type symbol.

Expression objects

An expression objects contains one or more parsed but unevaluated statements.
Expression objects are very similar to lists.

C Structures for objects

In the source code of R, an object is a pointer to a structure with typedef SEXPREC.
The different datatypes are represented by SEXPTYPE (which is a typedef'd unsigned int, see src/include/Rinternals.h).

Serializing objects

An object can be serialized with serialize, save or saveRDS and be deserialzed with unserialize, load or loadRDS.

Object orientation

R has three object oriented systems: S3, S4 and S5

TODO

class, mode

See also

identical(obj_1, obj_2) tests if two objects are exactly equal.
Functions are objects, too.
The NULL object.
dput dumps an object in the form of R code.

Index