::kable(head(cars), align = "c") knitr
speed | dist |
---|---|
4 | 2 |
4 | 10 |
7 | 4 |
7 | 22 |
8 | 16 |
9 | 10 |
下面是在quarto中的一些不同类型的表格示例:
You can see in 表格 2.1, that this table is from R code…
mpg | cyl | disp | |
---|---|---|---|
Mazda RX4 | 21.0 | 6 | 160 |
Mazda RX4 Wag | 21.0 | 6 | 160 |
Datsun 710 | 22.8 | 4 | 108 |
# 表格
下面是在quarto中的一些不同类型的表格示例:
You can see in @tbl-LABEL1, that this table is from R code...
```{r}
#| label: tbl-LABEL1
#| tbl-cap: CAPTION1
knitr::kable(head(cars), align = "c")
```
```{r}
#| column: page
knitr::kable(
mtcars[1:3, 1:3], align = "c")
```
```{r}
#| column: margin
knitr::kable(
mtcars[1:3, 1:3], align = "c")
```