html_table: html_table

Description Usage Arguments Details Value Author(s)

View source: R/table.R

Description

html_table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
html_table(
  df,
 
    html.table.attributes = "id = \"table1\" class=\"svatablegrayheader\" style=\"width: 100%;\" border=\"0\"",
  html_head = generate_header(),
  align = rep("left", ncol(df)),
  col.names = names(df),
  file = tempfile(),
  fragment = FALSE,
  footer = FALSE
)

Arguments

df

The dataframe to be written to html table form

html.table.attributes

The attributes of the table. This is a character vector that is placed in the <table> tag. Should include the class(es) of the table. The default is an html table with class 'svatablegrayheader' which is one of the table classes defined in sva's main.css

html_head

An object of class svamap.htmlheader. See generate_header() function

align

The alignement of each column. This is a character vector that indicates the alignment of each column in the table. The default is all 'left'

col.names

The names of the column heading in the table. This is a character vector of the names to be used in the resulting table. The default are the column names from df

file

A path to a file. A valid path to write the html. The default is a tempfile().

fragment

Do you want just a fragment or a full html?

footer

Do you want the last row of the table to be in a '<tfoot>' tag?

Details

A function that takes a data.frame and writes to an html table

Value

A path to an html file

Author(s)

Thomas Rosendal


SVA-SE/svamap documentation built on Sept. 25, 2020, 3:53 p.m.