windows - Include apsrtable (or stargazer) output in an Rmd file -
i tried include summary of lm
object in rmd file, using code next didn't work. help me that?
```{r summary_lm, results='asis', echo=false, comment=na} library(apsrtable) my_model <- lm(y ~ x, info = data.frame(y = rnorm(10), x = 1:10)) res <- apsrtable(my_model) # my_model linear regression model (lm) cat("$$latex \n",res,"\n$$ \n") ```
the $$
syntax applies math expressions, , trying set table in it, not work. apsrtable
, far understand, latex only, latex , markdown different -- there little hope can redo latex exclusively markdown. think people invented $$
syntax markdown due fact supported mathjax, , note there many variants/flavors based on original markdown.
at moment may consider:
usextable
or ascii
or r2html
bundle generate html tables request bundle author of apsrtable
back upwards html tables windows r latex knitr rmarkdown
No comments:
Post a Comment