sis_clean: Clean up trait and tree

View source: R/processdata.R

sis_cleanR Documentation

Clean up trait and tree

Description

Does basic formatting and cleanup: makes sure the taxa are the same order in both, makes sure row names of the data are taxa, etc. Relies on geiger's treedata function. The first_col_names is for software like hisse, where the first column is often taxon names.

Usage

sis_clean(phy, traits, first_col_names = FALSE)

Arguments

phy

A phylo object

traits

A data.frame of traits

first_col_names

Boolean on whether the first column has names.

Value

a list with phy and traits elements


bomeara/sisters documentation built on Oct. 11, 2023, 12:14 a.m.