Description Usage Arguments Value
Generate markdown or LaTeX table from list of analyses2() function outputs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | make_table(
.table_list,
.row_names,
.col_names,
.title,
.label = NULL,
.print_status = FALSE,
.type = getOption("usefulr.type", "markdown"),
.pad = getOption("usefulr.html_pad", 0),
.col_print = getOption("usefulr.html_col", 6),
.model_stat_names = c("Observations", "Adj. R-squared"),
.group_means = NULL,
.hypotheses = NULL,
.add_rows = NULL,
.add_stars = c(`+` = 0.15, `*` = 0.1, `**` = 0.05, `***` = 0.01),
.add_modelspec = FALSE,
.round_digits = 3
)
|
.table_list |
List of estimate objects generated by |
.row_names |
Names of rows in output table. |
.col_names |
Names of models in list of |
.title |
Character string specifying the name of the table. |
.label |
Character string specifying the label used to refer to table. |
.print_status |
Logical. Whether to print status of the model. |
.type |
Character string. Either "html","markdown" or "latex" as specified in knitr::kable function. |
.pad |
Integer number for output table padding |
.col_print |
Number of columns to split by. Defaults to 6. |
.model_stat_names |
Character vector of names for model states stored in |
.group_means |
Matrix of group means with row names. Number of columns must coincide with the main table output |
.hypotheses |
Matrix of directional hypotheses with row names. Number of columns must coincide with the main table output |
.add_rows |
<atrix with other statistics to add to the main output. Number of columns must coincide with the main table output |
.add_stars |
Nemed vector of significance levels |
.add_modelspec |
Logical. Whether to add statistical significance stars |
.round_digits |
Numeric. The rounding of report is done up to 10^-.round_digits. param .latex_colwidth If .type = "latex", character string specifying column width and alignment. Defaults to ">\centering\arraybackslash\hsize=.5\hsizeX". param .latex_scalebox If .type = "latex", numeric value for latex table rescaling. Defaults to 0.9. param .latex_size If .type = "latex", character string specifying font size for latex table. Defaults to "footnotesize". param .latex_spacing If .type = "latex", character string specifying the latex code to be inserted between estimate and standard error in table. Defaults to "\hspace0.2in" param .latex_sanitize If .type = "latex", function specifying the text sanitizing function for table. param .latex_floating If type="latex", first element of list, logical, defines whether the latex table will be floating, while the second element of list defines the floating environment. Defaults to list(TRUE, "table"). param .latex_placement If type="latex", character string specifying table floating placement. Defaults to "H". |
Markdown or LaTeX table of estimated models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.