Learn R Programming

ggphylo (version 0.1)

tree.has.tags: Determines whether the given phylo object contains tags or not.

Description

Determines whether the given phylo object contains tags or not.

Usage

tree.has.tags(phylo)

Arguments

phylo
input phylo object

Value

boolean, indicating this phylo has tags (TRUE) or doesn't (FALSE).

Examples

Run this code
tree.has.tags(tree.read('((a,b[&&NHX:foo=bar]),c);')) # TRUE
tree.has.tags(tree.read('((a,b),c);')) # FALSE

Run the code above in your browser using DataLab