WriteMetatreeXML: Writes out a metatree-format XML file

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/WriteMetatreeXML.R

Description

Writes out a metatree-format XML file.

Usage

1
WriteMetatreeXML(XML, File)

Arguments

XML

The XML file to write. Must be in format imported by ReadMetatreeXML.

File

Path to XML file to write.

Details

The metatree XML format (Lloyd et al. 2016) is described in detail in the ReadMetatreeXML help file and is primarily used by the Metatree function. However, a user may also wish to edit an XML file in R and then write it to a file, and that is what this function does.

Value

Nothing is returned, but a file is produced.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

References

Lloyd, G. T., Bapst, D. W., Friedman, M., and Davis, K. E., 2016. Probabilistic divergence time estimation without branch lengths: dating the origins of dinosaurs, avian flight and crown birds. Biology Letters, 12, 20160609.

See Also

ReadMetatreeXML.

Examples

1
2
3
4
5
6
7
8
# Example read line:
#x <- ReadMetatreeXML("Rogers_etal_2012a.xml", Invisible = FALSE)

# Example write line:
#WriteMetatreeXML(x, "Rogers_etal_2012a.xml")

# (Note that this is commented out as it would only work locally,
# but should give the user an idea of the syntax)

graemetlloyd/metatree documentation built on April 29, 2021, 2:32 a.m.