slotOp {base}R Documentation

Extract Slots

Description

Extract tbe contents of a slot in a object with a formal (S4) class structure.

Usage

object@name

Arguments

object An object from a formally defined (S4) class.
name The character-string name of the slot.

Details

This operator supports the formal classes of package methods, and is disabled unless the methods is loaded. See slot for further details.

As from R 2.7.0 it is checked that object is an S4 object (see isS4). If name is not a slot name, an error is thrown. (There is an exception for name .Data for internal use only.)

Value

The current contents of the slot.

See Also

Extract, slot


[Package base version 2.7.1 Index]