Learn R Programming

RNeXML (version 2.4.11)

get_metadata_values: Get the value(s) for metadata

Description

Extracts the values from the metadata annotations for the given property or properties, and returns the result.

Usage

get_metadata_values(nexml, annotated = NULL, props)

Value

a named character vector, giving the values and names being the property names

Arguments

nexml

a nexml object

annotated

the nexml component object from which to obtain metadata annotations, defaults to the nexml object itself

props

a character vector of property names for which to extract metadata annotations

Details

For matching property identifiers (i.e., URIs), prefixes in the input list as well as in the annotated object will be expanded using the namespaces of the nexml object. Names in the returned vector are mapped to the (possibly prefixed) form in the input list.