printC | R Documentation |
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).
printC(objx, file)
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. |
No return to R. The formatted objx is outputted to a .html file in working directory.
Complete Playlist of RCPA3 Package Tutorial Videos, includes video for this function and many more.
Philip H. Pollock and Barry C. Edwards, An R Companion to Political Analysis, 3rd Edition (Thousand Oaks, CA: Sage Publications, Forthcoming 2022), Chapter 1.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.