2.3 Quarto tables, figures, and stats
Open the slides in a new tab here.
Exercises
Return to the quarto document with the tables.
- Choose a table to label and caption, and then write a sentence that cross-references it (e.g., Table 1 shows the descriptive statistics)
- From that table, choose at least two statistics to pull out of the table and include in the text using
inline_text()
. - Add another statistic to the text that you calculate yourself using the
nlsy
data, e.g., the mean number of hours of sleep on weekends. - Render the document! Make sure it renders, and then commit and push.
Use this document as a test to see if table captions work.
Resources
- The quarto website is an amazing resource
- Feel free to look at the source code of this site
Additional resources for R Markdown will have a lot of overlap: