eml_to_spice: Create dataspice metadata tables from EML

Description Usage Arguments Value Examples

View source: R/eml_to_spice.R

Description

Create dataspice metadata tables from EML

Usage

1
eml_to_spice(eml, path = NULL)

Arguments

eml

(emld) An EML object

path

(character) Folder path for saving the tables to disk

Value

A list with names attributes, access, biblio, and creators. Optionally, if path is specified, saves the four tables as CSV files.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
# First, load up an example EML record
library(EML)

eml_path <- system.file(
 file.path("example-dataset", "broodTable_metadata.xml"),
 package = "dataspice")
eml <- read_eml(eml_path)


# Generate the four dataspice tables
my_spice <- eml_to_spice(eml)

# Or save them as a file
# Generate the four dataspice tables
eml_to_spice(eml, ".")

## End(Not run)

dataspice documentation built on May 17, 2021, 1:09 a.m.