setAge: Set the age of a tree

Description Usage Arguments Details See Also Examples

Description

Return a tree with the age altered.

Usage

1
setAge(tree, val)

Arguments

tree

TreeMan object

val

new age

Details

Use this function to change the age of a tree. For example, you might want to convert the tree so that its age equals 1. This function will achieve that by modiyfing every branch, while maintaining their relative lengths.

See Also

setPD https://github.com/DomBennett/treeman/wiki/set-methods

Examples

1
2
3
4
library(treeman)
tree <- randTree(10)
tree <- setAge(tree, val=1)
summary(tree)

treeman documentation built on July 8, 2020, 7:28 p.m.