\begin{Schunk}
\begin{Sinput}
 levels(dat$gender)
\end{Sinput}
\begin{Soutput}
[1] "male"   "female"
\end{Soutput}
\end{Schunk}
