match_data: Get a tree and data, resolve to same set of taxa, and make a...

View source: R/processdata.R

match_dataR Documentation

Get a tree and data, resolve to same set of taxa, and make a shared object

Description

Get a tree and data, resolve to same set of taxa, and make a shared object

Usage

match_data(tree, data, warnings = FALSE)

Arguments

tree

a phylo object

data

A data.frame. Rownames are species names.

warnings

Complain about mismatches if TRUE.

Value

The function returns a list of two elements (phy and data) that are manipulated to include only those species found in both the tree and data supplied by the user. The class of the returned object is "phydo".


bomeara/chapter2 documentation built on July 22, 2023, 3:19 a.m.