eml_otherEntity_to_dataTable: Convert otherEntities to dataTables

View source: R/eml.R

eml_otherEntity_to_dataTableR Documentation

Convert otherEntities to dataTables

Description

Convert an EML 'otherEntity' object to a 'dataTable' object. This will convert an otherEntity object as currently constructed - it does not add a physical or add attributes. However, if these are already in their respective slots, they will be retained.

Usage

eml_otherEntity_to_dataTable(doc, index, validate_eml = TRUE)

Arguments

doc

(list) An EML document.

index

(integer) The indicies of the otherEntities to be transformed.

validate_eml

(logical) Optional. Whether or not to validate the EML after completion. Setting this to FALSE reduces execution time by ~50 percent.

Author(s)

Dominic Mullen dmullen17@gmail.com

Examples

## Not run: 
doc <- read_eml(system.file("example-eml.xml", package = "arcticdatautils"))

doc <- eml_otherEntity_to_dataTable(doc, 1)

## End(Not run)

NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.