as_emld {emld} | R Documentation |
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"))
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
hf205 <- system.file("extdata/hf205.xml", package="emld")
as_emld(hf205)
[Package emld version 0.5.1 Index]