makeBinaryPaths: Makes a binary path vector from either a tree of class...

View source: R/RERfuncs.R

makeBinaryPathsR Documentation

Makes a binary path vector from either a tree of class "phylo" or a foreground species set supplied as a character vector

Description

Makes a binary path vector from either a tree of class "phylo" or a foreground species set supplied as a character vector

Usage

makeBinaryPaths(input, treesObj)

Arguments

input

Either a phenotype tree of class "phylo" (with branch length encoding a phenotype) or a character vector of foreground branches

treesObj

A treesObj created by readTrees

transition

A character string indicating whether transitions between background and foreground branches are "bidirectional" or "unidirectional" (no foreground to background transitions, the default)

Value

A vector of length equal to the number of paths in treesObj


nclark-lab/RERconverge documentation built on June 9, 2025, 6:02 a.m.