Learn R Programming

umx (version 1.7.5)

umx_print: umx_print

Description

A helper to aid the interpretability of printed tables from OpenMx (and elsewhere). Its most useful characteristics are allowing you to change how NA and zero appear. and supressing 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 as tables in browser.

suppress

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

...

Optional parameters for print

See Also

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

Other Reporting Functions: loadings.MxModel, umxAPA, umxGetParameters, umxSummary, umx_APA_pval, umx_aggregate, umx_show, umx_time, umx

Examples

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

Run the code above in your browser using DataLab