Learn R Programming

RNeXML (version 2.0.7)

get_metadata: get_metadata

Description

get_metadata

Usage

get_metadata(nexml, level = "nexml")

Arguments

nexml

a nexml object

level

the name of the level of element desired, see details

Value

the requested metadata as a data.frame. Additional columns indicate tha parent element of the return value.

Details

'level' should be either the name of a child element of a NeXML document (e.g. "otu", "characters"), or a path to the desired element, e.g. 'trees/tree' will return the metadata for all phylogenies in all trees blocks.

Examples

Run this code
# NOT RUN {
comp_analysis <- system.file("examples", "primates.xml", package="RNeXML")
nex <- nexml_read(comp_analysis)
get_metadata(nex)
get_metadata(nex, "otus/otu")
# }

Run the code above in your browser using DataLab