Turns a data frame into an HTML file containing a sortable table.

SortableHTMLTables writes a data frame to an HTML file that contains a sortable table. The sorting is done using the jQuery plugin Tablesorter. The appearance is controlled through a CSS file and several GIF's.


SortableHTMLTables transforms a data frame into an HTML document containing a sortable table. The sorting is done using the jQuery plugin Tablesorter. The table is stylized by default using the example CSS and GIF files provided with Tablesorter. An example table can be seen at http://www.johnmyleswhite.com/SortableHTMLTables/sample.html

Installation

This package is on CRAN. To install it, simply type,

install.packages('SortableHTMLTables')

If you would like to use the development version, please git clone this repository and then run the following command from inside the cloned repository:

R CMD INSTALL SortableHTMLTables_*.tar.gz

Example

library('SortableHTMLTables')

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

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

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SortableHTMLTables")

0.1-3 by John Myles White, 7 years ago


Browse source code at https://github.com/cran/SortableHTMLTables


Authors: John Myles White


Documentation:   PDF Manual  


Task views: Reproducible Research


MIT license


Depends on testthat, brew


See at CRAN