\HeaderA{slotOp}{Extract Slots}{slotOp}
\aliasA{@}{slotOp}{@}
\keyword{manip}{slotOp}
\begin{Description}\relax
Extract tbe contents of a slot in a object with a formal (S4) class
structure.
\end{Description}
\begin{Usage}
\begin{verbatim}
object@name
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An object from a formally defined (S4) class.
\item[\code{name}] The character-string name of the slot.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This operator supports the formal classes of package \pkg{methods}, and
is enabled only when \pkg{methods} is loaded (as per default).  See
\code{\LinkA{slot}{slot}} for further details.

As from \R{} 2.7.0 it is checked that \code{object} is an S4 object (see
\code{\LinkA{isS4}{isS4}}), and as from \R{} 2.8.0 it is an error to attempt to
use \code{@} on any other object. (There is an exception for name
\code{.Data} for internal use only.)

If \code{name} is not a slot name, an error is thrown.
\end{Details}
\begin{Value}
The current contents of the slot.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{Extract}{Extract}},
\code{\LinkA{slot}{slot}}
\end{SeeAlso}

