-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_16-6-tables.Rmd
63 lines (39 loc) · 1.07 KB
/
_16-6-tables.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Table options
Several packages support making beautiful tables with R, such as
* [xtable](https://cran.r-project.org/web/packages/xtable/)
* [stargazer](https://cran.r-project.org/web/packages/stargazer/)
* [pander](http://rapporter.github.io/pander/)
* [tables](https://cran.r-project.org/web/packages/tables/)
* [ascii](http://eusebe.github.io/ascii/)
* etc.
It is also very easy to make tables with knitr's `kable` function:
```
{r eval=FALSE, include=FALSE, echo=TRUE}
knitr::kable(head(iris), caption = Title of the table )
```
<!-- ```
{r eval=FALSE, include=FALSE, echo=TRUE} -->
<!-- tables::knit_print.tabular(mtcars) -->
<!--```-->
```
{r eval=FALSE, include=FALSE, echo=TRUE}
pander::pander(mtcars)
```
```
{r eval=FALSE, include=FALSE, echo=TRUE}
stargazer::stargazer(mtcars)
```
```
{r echo = TRUE, results = 'asis'}
library(knitr)
kable(mtcars[1:5, ], caption = A knitr kable. )
```
```
{r eval=FALSE, include=FALSE, echo=TRUE}
library(rhandsontable)
rhandsontable(mtcars)
```
```
{r eval=FALSE, include=FALSE, echo=TRUE}
xtable::xtable(mtcars)
```