Skip to contents

Add title and description metadata to a table and its columns.

Usage

add_metadata(table, table_metadata, column_metadata)

Arguments

table

dataframe (or dataframe-like object)

table_metadata

named list (or list-like object) such that table_metadata$Title and table_metadata$Description are strings containing the title and description of the table

column_metadata

dataframe with rownames equal to the columns in table, and Title and Description columns giving the title and description of each column in table

Value

version of table with added metadata attributes