Learn R Programming

MorphSim (version 0.1.0)

write.recon.tsv: Write the taxa ages of reconstructed tree

Description

Writes the ages of the specimen in the reconstructed tree to a file. The tsv format used here is directly compatible with RevBayes

Usage

write.recon.tsv(data, file, uncertainty = 0)

Value

No return value, called for its side effect of writing data to a file.

Arguments

data

Morpho object

file

File name

uncertainty

Numeric. Adds uncertainty to fossil ages in the morpho object. The ages in the object are point estimates by default; setting `uncertainty` will create an age range of ± this value (in millions of years).

Examples

Run this code
data(morpho_data)
tmp <- tempfile(fileext = ".tsv")
write.recon.tsv(data = morpho_data, file = tmp)

Run the code above in your browser using DataLab