Learn R Programming

datelife (version 0.6.8)

patristic_matrix_pad: 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)

Value

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

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.