build_group_vec: Build a group vector from custom groups

View source: R/custom-groups.R

build_group_vecR Documentation

Build a group vector from custom groups

Description

Converts a named list of tip vectors into the named-vector format used by compute_mrca_map().

Usage

build_group_vec(groups, tip_labels)

Arguments

groups

Named list of character vectors (tip labels per group).

tip_labels

Character vector of all tip labels in the tree.

Value

Named character vector: names = tip labels, values = group names, NA for ungrouped tips.


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.