matchTipsAndTraits {phylosignal}R Documentation

Match matrix row/col names with phylo4d tips/traits

Description

Check for constitency of rows and columns names between a matrix of traits values and phylo4d object.

Usage

matchTipsAndTraits(
  x,
  p4d = NULL,
  p4d.tips = NULL,
  p4d.traits = NULL,
  subset = TRUE
)

Arguments

x

a matrix of data.

p4d

a phylo4d object.

p4d.tips

tips labels (relevant if p4d is NULL).

p4d.traits

traits labels (relevant if p4d is NULL).

subset

a logical. Should the data matrix be subsetted using tips and traits labels.

Value

The data matrix (eventually subsetted). An error if no consistency between the data and the tree.


[Package phylosignal version 1.3.1 Index]