as_emld: Coerce an EML file or object into an emld object.

Description Usage Arguments Value Examples

Description

Coerce an EML file or object into an emld object.

Usage

1
as_emld(x, from = c("guess", "xml", "json", "list"))

Arguments

x

path to an EML file

from

explicit type for the input format. By default, will attempt to guess the format, but it always safer to specify the input format. This is essential for literal text strings or raw vectors where the type cannot be guessed by the R object class or file extension of the input.

Value

an emld object

Examples

1
2
 hf205 <- system.file("extdata/hf205.xml", package="emld")
 as_emld(hf205)

cboettig/emld documentation built on June 9, 2019, 8:38 a.m.