Learn R Programming

SortableHTMLTables (version 0.1-3)

sortable.html.table: Write a data frame as an HTML file containing a sortable table.

Description

sortable.html.table writes a data frame out as an HTML file that is sortable using Javascript. The appearance of the table is controlled through CSS and uses several GIF icons.

Usage

sortable.html.table(df, output.file, output.directory, page.title)

Arguments

df
A data frame that will become a table in the output document.
output.file
The filename for the HTML document that will be produced.
output.directory
The directory in which the HTML document and assets will be stored.
page.title
The title attribute for the HTML document produced. Defaults to 'Untitled Page'.

Value

No return value.

Examples

Run this code
library('SortableHTMLTables')

df <- data.frame(X = rnorm(10), Y = runif(10), Z = rcauchy(10))

sortable.html.table(df, 'sample.html')

Run the code above in your browser using DataLab