Match matrix row/col names with phylo4d tips/traits

Share:

Description

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

Usage

1
2
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.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.