Last data update: 2014.03.03

R: Write a data frame as an HTML file containing a sortable...
sortable.html.tableR Documentation

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

library('SortableHTMLTables')

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

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

Results