\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 disabled unless the \pkg{methods} is loaded.  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}}).  If \code{name} is not a slot name, an error is
thrown.  (There is an exception for name \code{.Data} for internal use only.)
\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}

