Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/WriteMetatreeXML.R
Writes out a metatree-format XML file.
1 | WriteMetatreeXML(XML, File)
|
XML |
The XML file to write. Must be in format imported by ReadMetatreeXML. |
File |
Path to XML file to write. |
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.
Nothing is returned, but a file is produced.
Graeme T. Lloyd graemetlloyd@gmail.com
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.
ReadMetatreeXML.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.