Learn R Programming

emld (version 0.5.1)

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

Description

Coerce an EML file or object into an emld object.

Usage

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

Value

an emld object

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.

Examples

Run this code
 hf205 <- system.file("extdata/hf205.xml", package="emld")
 as_emld(hf205)

Run the code above in your browser using DataLab