slotOp
Extract Slot from an S4 Object

Description

Extracts the named slot from an S4 object.

Usage

object @ name

Arguments

object an S object.
name a name or string giving the name of a slot for the S4 class of object.

Details

This is used to extract the value of a named slot from an S4 object.
If x is a non-S4 object, x@.Data returns exactly the same object. No other slot name works for non-S4 objects.
Value
The contents of the specified slot.
See Also
Subscript, slot.
Examples
x <- 1:10
attr(x,"foo") <- 123
y <- x@.Data
identical(x,y) # x@.Data just returns x
Package base version 6.1.1-7
Package Index