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.

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

Dominic Mullen dmullen17@gmail.com

Examples

if (FALSE) { doc <- read_eml(system.file("example-eml.xml", package = "arcticdatautils")) doc <- eml_otherEntity_to_dataTable(doc, 1) }