species.name: Species names in a tree string

species.nameR Documentation

Species names in a tree string

Description

The function can be used to obtain species names from a tree string.

Usage

species.name(str)

Arguments

str

a tree string in the parenthetical format

Details

The function returns the species names. If the tree string contains only the node number instead of species names, the function will return the node numbers.

Value

The function returns the species names.

Author(s)

Liang Liu lliu@uga.edu

See Also

read.tree.string

Examples

tree.string<-"(((H:4.2,C:4.2):3.1,G:7.3):6.3,O:13.5);"
species.name(tree.string)



lliu1871/phybase documentation built on April 21, 2024, 3:16 a.m.