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, printC will write it as preformatted text to the .html file in the working directory.

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

Textbook Reference

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"))


[Package RCPA3 version 1.2.1 Index]