Description Usage Arguments Examples
This function allows you to print the output of data frames and most R functions in an APA formatted table.
1 2 3 4 5 |
df |
Data Frame or Function output to print in an APA formatted HTML table. Defaults to NULL. |
tidy |
Do you want to convert the object into a data frame (TRUE/FALSE). This is accomplished using the Tidy() function in the package Broom. Defaults to TRUE. |
digits |
Number of digits you want to round numbers too. Leave blank if you don't want to round numbers or if the Data Frame contains strings. Defaults to NULL. |
genNote |
General note to be displayed below the table (Automatically begins with NOTE. "Your note here"). Defaults to NULL. |
font |
Sets the font that text is displayed in. Defaults to Times New Roman. |
tableNum |
Adds a table number above the table. Format is "Table XX". If NULL, no table number is displayed. Defualts to NULL. |
tableTitle |
Adds a title above the table. If NULL, no title will be displayed. Defaults to NULL. |
headerBold |
Do you want the column headers to be bolded (TRUE/FALSE)? Defaults to FALSE. |
headerAlign |
Sets the horizontal alignment of the column headers ("left","center","right"). Defaults to "center". |
leftColAlign |
Sets the horizontal alignment of the first column in the table ("left","center","right"). Defaults to "left". |
contentAlign |
Sets the horizontal alignment of all other cells in the table besides the header (see headerAlign) and left column (see leftColAlign). |
header |
Manually define the column headers as a list. The length of the list must match the number of columns in the table. Defaults to NULL. |
fontsize |
Sets the font size of all text in the table. Defaults to 12pt. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.