Extract the character matrix
get_characters_list(nexml, rownames_as_col = FALSE)
nexml object (e.g. from read.nexml)
option to return character matrix rownames (with taxon ids) as it's own column in the data.frame. Default is FALSE for compatibility with geiger and similar packages.
the list of taxa
# NOT RUN { comp_analysis <- system.file("examples", "comp_analysis.xml", package="RNeXML") nex <- nexml_read(comp_analysis) get_characters_list(nex) # }
Run the code above in your browser using DataLab