matchTipsAndTraits: Match matrix row/col names with phylo4d tips/traits

Description Usage Arguments Value

View source: R/utilities.R

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.


phylosignal documentation built on May 30, 2017, 12:50 a.m.

Search within the phylosignal package
Search all R packages, documentation and source code