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

Description Usage Arguments Value Examples

View source: R/sortable.html.table.R

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

1
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

1
2
3
4
5
library('SortableHTMLTables')

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

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

johnmyleswhite/SortableHTMLTables documentation built on May 19, 2019, 5:17 p.m.