## 6.5 Tables

You can use the kable() function from the knitr package to format tables that integrate well with the rest of the Tufte handout style. The table captions are placed in the margin like figures in the HTML output. A simple example (Figure 6.5 shows the output):

{r}
knitr::kable(
mtcars[1:6, 1:6], caption = 'A subset of mtcars.'
)