如何在R中构造表?我一直在通过latex、html和现在的Git来实现它,但它不起作用 #安装程序包('tinytex')) #图书馆(tinytex) #表结构 #tinytex软件包不起作用-我和Amar谈过这件事。 #尽管将其编入HDML或Pdf,它

如何在R中构造表?我一直在通过latex、html和现在的Git来实现它,但它不起作用 #安装程序包('tinytex')) #图书馆(tinytex) #表结构 #tinytex软件包不起作用-我和Amar谈过这件事。 #尽管将其编入HDML或Pdf,它,r,R,如何在R中构造表?我一直在通过latex、html和现在的Git来实现它,但它不起作用 #安装程序包('tinytex')) #图书馆(tinytex) #表结构 #tinytex软件包不起作用-我和Amar谈过这件事。 #尽管将其编入HDML或Pdf,它仍然无法运行。 |回归| R^2 |估计截距|估计斜率|残差标准差| P值检验| 95%置信区间| |-|-|-|-|-|-|-| |整个样品的单反比| 0.01178 | 1.72944 | 0.01686 | 0.9254 | 0.1261

如何在R中构造表?我一直在通过latex、html和现在的Git来实现它,但它不起作用
#安装程序包('tinytex'))
#图书馆(tinytex)
#表结构
#tinytex软件包不起作用-我和Amar谈过这件事。
#尽管将其编入HDML或Pdf,它仍然无法运行。
|回归| R^2 |估计截距|估计斜率|残差标准差| P值检验| 95%置信区间|
|-|-|-|-|-|-|-|
|整个样品的单反比| 0.01178 | 1.72944 | 0.01686 | 0.9254 | 0.1261 |[-0.049,0.039]|

|米西索加单反| 0.9842 | 0.14906 | 0.88525 | 0.0907 |如果您将表格作为数据框架,为什么不使用
kable
kableExtra
这两种组合非常强大。见
#install.packages('tinytex')
#library(tinytex)

#Table construction
#tinytex package was not working - I talked to Amar about this. 
#Despite knitting it into HDML or Pdf, it still failed to run. 

| Regressions | R^2 | Estimated Intercept | Estimated Slope | Residual Standard Error | P-Value Test  | 95% Confidence Interval |
|-|-|-|-|-|-|-|
| SLR for Entire Sample | 0.01178 | 1.72944 | 0.01686 | 0.9254 | 0.1261 | [-0.049, 0.039] |
| SLR for Mississauga | 0.9842 | 0.14906 | 0.88525 | 0.0907 | <2e-16 *** | [0.861, 0.91] |
| SLR for Toronto  | 0.001139 | 1.963153 | 0.004171 | 0.9781 | 0.7227 | [-0.019, 0.027] |