Description Usage Arguments Value Examples
View source: R/sortable.html.table.R
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.
1 | sortable.html.table(df, output.file, output.directory, page.title)
|
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'. |
No return value.
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')
|
Loading required package: testthat
Loading required package: brew
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.