xml_discretetraitdata: Generate the data block in a BEAST XML file.

View source: R/xml_helpr.R

xml_discretetraitdataR Documentation

Generate the data block in a BEAST XML file.

Description

Generate the data block in a BEAST XML file.

Usage

xml_discretetraitdata(
  states_dat,
  taxon_name,
  discrete_trait_name,
  date_name = NULL,
  lheat = 1,
  under_prior = F
)

Arguments

states_dat

a data-frame object containing at least two columns: one for the name of each tip (column name specified by taxon_name), and the other for the trait state of each tip (column name specified by discrete_trait_name)

taxon_name

name of the column containing tip names

discrete_trait_name

name of the column containing tip states

date_name

name of the column containing tip sampled dates

lheat

Number of data clones

under_prior

Whether to infer the joint prior distribution (default false) or the joint posterior distribution

Value

XML code specifying data usage


jsigao/prioritree documentation built on Jan. 9, 2023, 5:35 a.m.