View source: R/publish.matrix.R
publish.matrix | R Documentation |
This is the heart of the Publish package
## S3 method for class 'matrix' publish( object, title, colnames = TRUE, rownames = TRUE, col1name = "", digits = 4, try.convert = TRUE, sep = " ", endhead, endrow, style, inter.lines, latex = FALSE, wiki = FALSE, org = FALSE, markdown = FALSE, tabular = TRUE, latex.table.format = NA, latex.hline = 1, latex.nodollar = FALSE, ... )
object |
Matrix to be published |
title |
Title for table, only in wiki and muse format |
colnames |
If |
rownames |
If |
col1name |
Name for first column |
digits |
Numbers are rounded according to digits |
try.convert |
Logical. If |
sep |
Field separator when style is |
endhead |
String to be pasted at the end of the first row (header) |
endrow |
String to be pasted at the end of each row |
style |
Table style for export to |
inter.lines |
A named list which contains strings to be
placed between the rows of the table. An element with name
|
latex |
If |
wiki |
If |
org |
If |
markdown |
If |
tabular |
For style |
latex.table.format |
For style |
latex.hline |
For style |
latex.nodollar |
For style |
... |
Used to transport arguments. Currently supports
|
x <- matrix(1:12,ncol=3) publish(x) # rounding the numeric part of data mixtures y <- cbind(matrix(letters[1:12],ncol=3),x,matrix(rnorm(12),ncol=3)) publish(y,digits=1) publish(x,latex=TRUE, inter.lines=list("1"="text between line 1 and line 2", "3"="text between line 3 and line 4"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.