Skip to contents

Converts an `s_param` to XML

Usage

s_parameter_to_xml(parameter, beauti_options)

Arguments

parameter

a s parameter, a numeric value. For advanced usage, use the structure as created by create_s_param)

beauti_options

one BEAUti options object, as returned by create_beauti_options

Value

the parameter as XML text

Author

Richèl J.C. Bilderbeek

Examples

s_parameter_to_xml(
  create_s_param(id = 4, value = 1.25),
  beauti_options = create_beauti_options_v2_4()
)
#> [1] "<parameter id=\"RealParameter.4\" estimate=\"false\" name=\"S\">1.25</parameter>"
s_parameter_to_xml(
  create_s_param(id = 4, value = 1.25),
  beauti_options = create_beauti_options_v2_6()
)
#> [1] "<parameter id=\"RealParameter.4\" spec=\"parameter.RealParameter\" estimate=\"false\" name=\"S\">1.25</parameter>"