Converts a distribution to XML

distr_to_xml(distr, beauti_options = create_beauti_options())

Arguments

distr

a distribution, as created by create_distr)

beauti_options

one BEAUti options object, as returned by create_beauti_options

Value

the distribution as XML text

Author

Richèl J.C. Bilderbeek

Examples

distr_to_xml(create_uniform_distr(id = 1))
#> [1] "<Uniform id=\"Uniform.1\" name=\"distr\" upper=\"Infinity\"/>"