fix.semicolon.tree: Add a semi-colon to end of tree string

Description Usage Arguments Value Author(s) Examples

View source: R/trees.R

Description

Check if tree string ends in semi-colon and if not add one. This is mostly done for compatibility with ape, which requires them.

Usage

1

Arguments

x

A character string or vector of character strings each representing a tree in Newick format.

Value

The same value, but with a semi-colon added to the end of any strings which did not already end in semi-colons.

Author(s)

Melissa J. Hubisz

Examples

1
2
3
4
5
6
str <- c("213", "345")
fix.semicolon.tree(str)
str <- c("213;", "345;")
fix.semicolon.tree(str)
str <- c("213", "345;")
fix.semicolon.tree(str)

rphast documentation built on May 1, 2019, 9:26 p.m.