wiki.table {hacks}R Documentation

Format Wiki Tables

Description

Formats a matrix or a data frame for a wiki article.

Usage

wiki.table(x,caption=deparse(substitute(x)),...)

Arguments

x a matrix or a data frame.
caption a character string or NULL. If NULL no caption is printed. The default is the object name.
... parameter values for inclusion in the wiki header. These should be in the form of parameter = value.

Details

This format is used in WikiMedia tables.

Author(s)

Nathan Stephens

Examples

wiki.table(matrix(1:9,3),caption=NULL)
wiki.table(VADeaths,border=1,cellspacing=0,cellpadding=5,align="center")
apply(Titanic,3:4,wiki.table)

[Package hacks version 0.1-8 Index]