There's more...

Th sjPlot package also allows us to print tables properly formatted for books and other publications. This is done via the following:

tab_df(clients,title="Clients dataset",alternate.rows = TRUE) 

The following screenshot shows the printing of a table:

Get R Statistics Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.