Stargazer output appears below text - rmarkdown to pdf

前端 未结 2 1054
春和景丽
春和景丽 2020-12-11 12:18

The Problem

When using rmarkdown in RStudio, my stargazer(glm()) output gets positioned below the text that I would like it to. It gets

2条回答
  •  甜味超标
    2020-12-11 13:10

    Set float = FALSE. From the manual,

    float: a logical value that indicates whether the resulting table will be a 
    floating table (set off, for instance, by \begin{table} and \end{table}).
    

    In LaTeX, a table environment is a floating environment.

    E.g.

    stargazer(mtcars_glm, ci=FALSE, no.space = TRUE, report = c("vc*"), float = FALSE)
    

提交回复
热议问题