twTable-class: A class to handle TiddlyWiki tables.
Description
A class to handle TiddlyWiki tables.
Arguments
Usage
new ("twTable", dat, ...) twTable (dat, ref, color, ...)
Slots
dat:
a data.frame containing the
table values.
ref:
character matrix of the
target or URL to be redirected to from each cell of the
table.
color:
character matrix indicating
the color of each cell of the table.
bgcolor:
character matrix indicating the
background color of each cell of the table.
includeRowNames:
logical; if TRUE row names
of "dat" are used as row names of the table.
includeColNames:
logical; if TRUE column
names of "dat" are used as column names of the table.
rowref:
a character vectors of references
to be linked from the row names of the table.
colref:
a character vectors of references
to be linked from the column names of the table.
align:
a character vector indicating the
alignment of each column of the table; may be missing or
one of "l", "c" or "r".
title:
a title or
header for the table.
footer:
a footer for
the table.
sortable:
if TRUE the columns
of the table may be sorted by clicking on their column
names.
digits:
number of digits to be
displayed in numerical, non integer columns. Default is
3.
Details
Missing values are allowed for the entries of the table
in the "dat" slot. Missing data in in the "ref" or
"color" slots are interpreted as no reference to be
linked or not color to be used in the cell.
If sortable = TRUE the plugin needs to be installed.