HTML.data.frame {R2HTML}R Documentation

Write a data.frame (or matrix) to a HTML output

Description

This function exports a data.frame to a HTML file. Many arguments allow to customize the layout of the HTML table.

Usage

HTML.data.frame(x, file = .HTML.file, Border = 1, classfirstline = "firstline",\cr 
classfirstcolumn = "firstcolumn", classcellinside = "cellinside", digits = 2, \cr
append = TRUE, align = "center", caption = "", captionalign = "bottom", \cr
classcaption = "captiondataframe", classtable = "dataframe", ...)
HTML.data.frame(x,file=)

Arguments

x a data.frame
file target HTLM output
Border the size of the border around the table. Could be 0,1,... but also NULL
classfirstline CSS class for the first line (header - variable names)
classfirstcolumn CSS class for the first column (rownames)
classcellinside CSS class for others cells
digits number of digits to use for rounding
append logical. If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of 'file'
align alignment to be used: center, left or right
caption optional caption to append to the table
captionalign alignment to be used for the caption: could be bottom or top
classcaption CSS class to use for caption
classtable CSS class to be used for the whole table (in html <table> statement)
... ...

Details

For the moment, HTML.matrix and HTML.data.frame do have the same options.

Value

no value returned.

Author(s)

Eric Lecoutre

See Also

HTML

Examples

tmpfic=HTMLInitFile(tempdir(),CSSFile="http://www.stat.ucl.ac.be/R2HTML/R2HTML.css")
data(iris)
HTML(as.title("Fisher Iris dataset"),file=tmpfic)
HTML(iris, file=tmpfic)
# File is generated, you can call the browser:
## Not run: browseURL(tmpfic)

[Package Contents]