のデフォルトはxtable
です\begin{center}
。私はそれを作りたいです:\begin{left}
そして\end{left}
同様に。
コード:
library(xtable)
xtable(anova(lm(mpg~hp, data=mtcars)))
望ましい結果:
\begin{table}[ht]
\begin{left}
\begin{tabular}{lrrrrr}
\hline
& Df & Sum Sq & Mean Sq & F value & Pr($>$F) \\
\hline
hp & 1 & 678.37 & 678.37 & 45.46 & 0.0000 \\
Residuals & 30 & 447.67 & 14.92 & & \\
\hline
\end{tabular}
\end{left}
\end{table}