[Tex/LaTex] R assignment operator (“<-")

r

How does one typeset the R assignment operator ("<-")? Workarounds such as

\begin{description}
    \item[x \textless{}- c(1:3)] Create the vector [1 2 3] and assign it to an object named x.  %Illustrates workaround 1.
    \item[y $\leftangle$- c(10.4, 5.6, 3.1)] Create the vector [10.4 5.6 3.1] and assign it to an object named y.  %Illustrates workaround 2.
    \item[z $\leftarrow$ c(3.1, 6.4, 21.7)] Create the vector [3.1 6.4 21.7] and assign it to an object named z.  %Illustrates workaround 3.
\end{description}

are less than satisfactory.

Best Answer

The sequence $\gets$ would do the trick.