twTable-class: A class to handle TiddlyWiki tables.

Description Details Usage Slots Author(s) See Also Examples

Description

A class to handle TiddlyWiki tables.

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.

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.

Author(s)

David Montaner dmontaner@cipf.es

See Also

twLink and twImage

Examples

1
2
3
myData <- as.data.frame (matrix (rnorm (12), ncol = 4))
myTable <- new ("twTable", dat = myData)
wikify (myTable)

Example output

[1] ""                                "|!|V1|V2|V3|V4|h"               
[3] "|!1|-0.718|0.359|-0.391|0.785|"  "|!2|-0.458|-0.524|2.653|-2.011|"
[5] "|!3|-1.117|-0.042|-1.791|-0.3|"  ""                               

TiddlyWikiR documentation built on May 2, 2019, 9:18 a.m.