Displaying 1 result from an estimated 1 matches for "mat2html".
Did you mean:
man2html
1999 Aug 02
2
HTML Output from R
...r
and footer and any graphic output if necessary.
My question is: Has anyone done any HTML output from R?
My first attempt at this is the following:
(Note: this function is not intended for "production" work; in particular
no error checking - all the niceties I intend to add in the end)
mat2html <- function(x, y, capt="The Default Title", file= file){
#x: The matrix to be written in HTML
#y: A vector of length m containing the colnames of x
#capt: The title for the table
#file: The HTML file to write to
n <- dim(x)[1] #no. of rows
m <- dim(x)[2] #no. of columns
si...