Learn R Programming

csvwr (version 0.1.7)

create_metadata: 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)

Value

a list describing a tabular metadata annotation

Arguments

tables

a list of csvw:table annotations

Examples

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

Run the code above in your browser using DataLab