create_metadata: Create tabular metadata from a list of tables

create_metadataR Documentation

Create tabular metadata from a list of tables

Description

The table annotations should each be a list with keys for url and tableSchema. You can use derive_table_schema to derive a schema from a data frame.

Usage

create_metadata(tables)

Arguments

tables

a list of csvw:table annotations

Value

a list describing a tabular metadata annotation

Examples

d <- data.frame(foo="bar")
table <- list(url="filename.csv", tableSchema=derive_table_schema(d))
create_metadata(tables=list(table))

csvwr documentation built on Nov. 21, 2022, 5:05 p.m.