Skip to contents

Reads a Newick or NEXUS tree file using ape. Tries ape::read.tree first; falls back to ape::read.nexus if that fails.

Usage

read_tree(path)

Arguments

path

character. Path to the tree file.

Value

An object of class "phylo".

Examples

if (FALSE) { # \dontrun{
tree <- read_tree("path/to/tree.tre")
} # }