Learn R Programming

gCMAPWeb (version 1.12.0)

html_table: Format data.frame as html table

Description

Function to format a data.frame as an html table

Usage

html_table(df, table_id)

Arguments

df
A data frame
table_id
Character, specifying the id tag for the html table

Value

Html code as a character string.

Details

This function uses the thead and tbody tags required for the dataTables javascript to create interactive html tables.