Data Science Desktop Survival Guide
by Graham Williams |
|||||
Adding a Caption and Reference Label |
Raw We have seen captions and labels above but tell the story here in a slightly different way.
print(xtable(ds,
digits=0, caption="Selected observations from \\textbf{weatherAUS}."), include.rownames=FALSE)
Notice that we wanted to emphasise the name of the dataset in the
caption. We can make it bold using the
As well as adding a caption with a table number, we can add a label to
the xtable::xtable() command and then refer to the table within
the text using the
|