Learn R Programming

phylosignal (version 1.3.1)

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

Value

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

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.