create_meta_tables: HTML tables for meta data per document

Description Usage Arguments Value Examples

View source: R/html_misc.r

Description

Each row of the data.frame is transformed into a html table with two columns: name and value. The columnnames of meta are used as names.

Usage

1
create_meta_tables(meta, ignore_col = NULL, drop_missing = FALSE)

Arguments

meta

a data.frame where each row represents the meta data for a document

ignore_col

optionally, a character vector with names of metadata columns to ignore

drop_missing

if TRUE, omit missing meta rows instead of printing empty value

Value

a character vector where each value contains a string for an html table.

Examples

1
2
tabs = create_meta_tables(sotu_data$meta)
tabs[1]

kasperwelbers/tokenbrowser documentation built on May 3, 2021, 8:33 a.m.