LoginSignup
0
1

More than 3 years have passed since last update.

RとLaTeXと仲良くするTips

Last updated at Posted at 2021-04-07

RとLaTeXと仲良くするtipsを備忘録として書きます。

xtable

\begin{table}を消す

floating = FALSE とすれば、\begin{table}を消すことができる。

\begin{figure}[H]\center
<<vif_1, echo = FALSE, results=tex>>=
  print(xtable(table(1:5)), floating = FALSE)
@
\end{figure}

参考文献

stargazer

F統計量を表示しない

stargazer(lm(y ~ x, data), omit.stat=c("f"))

無駄な余白を消す

no.space = TRUE オプションで余白が減る!

stargazer(lm(y ~ x, data), no.space = TRUE)

\begin{table}を消す

float = FALSE オプションで、\begin{tabular} ~ \end{tabular}のみが出力される!

stargazer(data, float = FALSE)

とする!

参考文献

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1