R 赋值运算符(“

R 赋值运算符(“

如何排版 R 赋值运算符 (“<-”)?解决方法如下

\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}

并不令人满意。

答案1

这个顺序$\gets$就可以达到目的。

相关内容