wiki.table {hacks} | R Documentation |
Formats a matrix or a data frame for a wiki article.
wiki.table(x,caption=deparse(substitute(x)),...)
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 . |
This format is used in WikiMedia tables.
Nathan Stephens
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)