umx (version 1.9.1)

umx_print: Print tables in a range of formats (markdown default, see umx_set_table_format for other formats) or as a web browser table.

Description

To aid interpretability of printed tables from OpenMx (and elsewhere) you can change how NA and zero appear, and suppressing values below a certain cut-off. By default, Zeros have the decimals suppressed, and NAs are suppressed altogether.

Usage

umx_print(x, digits = getOption("digits"), quote = FALSE, na.print = "",
  zero.print = "0", justify = "none", file = c(NA, "tmp.html"),
  suppress = NULL, ...)

Arguments

x

A data.frame to print (matrices will be coerced to data.frame)

digits

The number of decimal places to print (defaults to getOption("digits")

quote

Parameter passed to print (defaults to FALSE)

na.print

String to replace NA with (default to blank "")

zero.print

String to replace 0.000 with (defaults to "0")

justify

Parameter passed to print (defaults to "none")

file

whether to write to a file (defaults to NA (no file). Use "tmp.html" to open table in browser.

suppress

minimum numeric value to print (default = NULL, print all values, no matter how small)

...

Optional parameters for print

Value

- A dataframe of text

See Also

umx_set_table_format

Other Utility Functions: qm, umx_find_object, umx_msg, umx_names, umx_paste_names, umx_pb_note, umx_rename, umx

Other Reporting Functions: loadings.MxModel, tmx_is.identified, umxAPA, umxFactorScores, umxGetParameters, umxReduce, umxSummary, umx_APA_pval, umx_aggregate, umx_parameters, umx_show, umx_time, umx

Examples

Run this code
# NOT RUN {
umx_print(mtcars[1:10,], digits = 2, zero.print = ".", justify = "left")
umx_print(mtcars[1:10,], file = "tmp.html")
# }

Run the code above in your browser using DataLab