patristic_matrix_pad: Fill in empty cells in a patristic matrix for missing taxa.

View source: R/datelife_internal.R

patristic_matrix_padR Documentation

Fill in empty cells in a patristic matrix for missing taxa.

Description

Used in: patristic_matrix_list_to_array().

Usage

patristic_matrix_pad(patristic_matrix, all_taxa)

Arguments

patristic_matrix

A patristic matrix, rownames and colnames must be taxa.

all_taxa

A vector of names of all taxa you want, including ones not in the patristic matrix.

Value

A patristic matrix, with NA for entries between taxa where at least one was not in the original patristic matrix.


phylotastic/datelife documentation built on Jan. 17, 2024, 11:10 p.m.