Learn R Programming

MorphSim (version 0.1.0)

write.tsv: Write the taxa ages

Description

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

Usage

write.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.tsv(data = morpho_data, file = tmp)

Run the code above in your browser using DataLab