printC {RCPA3} | R Documentation |
Prints table of results to a .html file in local working directory
Description
Prints table or summary of results to a .html file in local working directory. Converting Console format tables to .html tables helps users quickly create publication- and presentation-ready tables. The .html file's name is displayed as Console message.
Current date added to Table.Output.html file name to keep output organized. You can print output directly from Companion functions using printC=TRUE
argument (where available).
Usage
printC(objx, file)
Arguments
objx |
A table or data frame. The table must be html-ready, not all Console output is organized in tables. If objx is not a html-ready table, |
file |
(Optional) The path/file name for .html output. If not specified, function will output to .html file in your working directory. |
Value
No return to R. The formatted objx is outputted to a .html file in working directory.
RCPA3 Package Tutorial Videos
-
Complete Playlist of RCPA3 Package Tutorial Videos, includes video for this function and many more.
Textbook Reference
Philip H. Pollock and Barry C. Edwards, An R Companion to Political Analysis, 3rd Edition (Thousand Oaks, CA: Sage Publications, Forthcoming 2022), Chapter 1.
Examples
library(RCPA3)
example.table <- freqC(x=world$vdem.4cat, plot=FALSE)
# running printC will generate a .html file in your working directory
printC(example.table, file=tempfile(fileext = ".html"))