使用stargazer在Rmarkdown beamer中绘制表格

使用stargazer在Rmarkdown beamer中绘制表格,r,r-markdown,R,R Markdown,我试图在我的beamer rmarkdown演示中绘制回归的摘要。使用stargazer函数,我可以做到这一点 ```{r, echo = T , comment = "" , message=FALSE, warning=FALSE } regra_taylor_0 <- dynlm(selic ~ lag(selic,-1) + desvio + hiato, data=data_estimacao_ts) ``` ```{r, echo = F , comment = ""

我试图在我的beamer rmarkdown演示中绘制回归的摘要。使用stargazer函数,我可以做到这一点

```{r, echo = T , comment =  "" , message=FALSE, warning=FALSE }
regra_taylor_0 <- dynlm(selic ~ lag(selic,-1) + desvio + hiato, data=data_estimacao_ts)

```

```{r, echo = F , comment =  "" , message=FALSE, warning=FALSE}

stargazer(regra_taylor_0 )


```

请帮助

以下是一个简单的示例,演示如何获得所需的stargazer输出,以及如何删除stargazer注释消息:

---
output: pdf_document
---

```{r setup, include=FALSE}
# You can set chunk options globally so you don't have to repeat them in every chunk
knitr::opts_chunk$set(echo = TRUE, message=FALSE, warning=FALSE)

library(stargazer)
```

```{r, results='asis'}
stargazer(lm(mpg ~ wt, data=mtcars), header=FALSE)
```

If you want to change and option for a specific chunk, you can do add a chunk option
like echo=FALSE.


```{r, results='asis', echo=FALSE}
stargazer(lm(mpg ~ wt + hp + vs, data=mtcars), header=FALSE)
```

```{r, results='asis'}
# Change the font size with the font.size argument. See the help for size options
stargazer(lm(mpg ~ wt + hp + vs, data=mtcars), header=FALSE, font.size = "scriptsize")
```

现在,有些桌子不完整了。但在这个表之前,我有一个由哈佛大学的Marek Hlavac创建的stargazer v.5.2.2%表。电子邮件:hlavac at fas.harvard.edu%日期和时间:qua,2018年6月20日-15:04:18@eipi10这样地?Resultadp{r,echo=T,comment=,message=FALSE,warning=FALSE,results=asis,xtable.comment=FALSE}stargazerregra_taylor_0我这样做了,但它不起作用{r,echo=F,comment=,message=FALSE,warning=FALSE,results=asis}选项xtable.comment=FALSE stargazerregra_taylor_0,font.size='footnotesize',size参数也不起作用。你知道如何调整桌子的大小吗?好的,它正在工作。你知道如何调整桌子的大小吗?
---
output: pdf_document
---

```{r setup, include=FALSE}
# You can set chunk options globally so you don't have to repeat them in every chunk
knitr::opts_chunk$set(echo = TRUE, message=FALSE, warning=FALSE)

library(stargazer)
```

```{r, results='asis'}
stargazer(lm(mpg ~ wt, data=mtcars), header=FALSE)
```

If you want to change and option for a specific chunk, you can do add a chunk option
like echo=FALSE.


```{r, results='asis', echo=FALSE}
stargazer(lm(mpg ~ wt + hp + vs, data=mtcars), header=FALSE)
```

```{r, results='asis'}
# Change the font size with the font.size argument. See the help for size options
stargazer(lm(mpg ~ wt + hp + vs, data=mtcars), header=FALSE, font.size = "scriptsize")
```