\begin{Schunk}
\begin{Sinput}
 y <- c(31, 33, 41, 61)
 ifelse(x < 3, y, x)
\end{Sinput}
\begin{Soutput}
[1] 31 33  3  4  5
\end{Soutput}
\end{Schunk}
