Description Usage Arguments Value Note
This function takes a generated nex file, and creates a related BEAST 2.3 xml that uses another BEAST xml file as a template.
1 | Nex_2_BEASTxml(template.xml, nex, file, rep.str, cont = FALSE)
|
template.xml |
- the template xml already parsed as an xml object via xmlParse > xmlToList |
nex |
- the nex file path to be used to create the new beast.xml |
file |
- the full file path where the created beast xml is to be written to |
rep.str |
- the id string that is to replace the id string from the template xml, usually replicate# |
cont |
- boolean concerning whether the simulation is time explicit or not. Default = FALSE |
written BEAST.xml
Function has been written to be used ideally within a loop of using sample_build directly afterwards, and in this instance it makes more sense to predetermine the template.xml and template.txt. Hence the template.path is default null, and function written intending user to allocated the xml and txt templates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.