cpdTable {compdiagTools}R Documentation

cpdTable - creates a HTML table from a data frame

Description

This function returns a character string, which represents a HTML table. The table is build from a given data.frame.

Usage

cpdTable(df, headline="", bgc1="#CCCCCC",bgc2="#E8E8E8",hc="#99CCCC",tbh="", 
         spc="0", align=NULL, valign=NULL, anchors=NULL, stripes"vertical")

Arguments

df data.frame object that should be transfered into a HTML table
headline Optional character string. If given, the function writes a headline (h3) above the table
hc Character string denoting background color for table head
bgc1 Character string denoting 1st background color for a table row
bgc2 Character string denoting 2nd background color for a table row
tbh Vector of character strings denoting the column titles
spc spacing petween cells in points (cellpadding)
align vector of strings (LEFT, CENTER, RIGHT), one per colum. If align is left to the default (NULL) all columns are aligned left.
valign is either 'top', 'middle', or 'bottom' and indicates how cells in the same row are aligned.
anchors adds one anchor per row, which can be used through HTML links.
stripes specifies whether the two background colors form 'vertical' or 'horizontal' stripes.

Value

return A character string representing a HTML table.

Author(s)

M. Held


[Package compdiagTools version 1.5.3 Index]