host_data: Add Host Phylogenetic Data To Community Data

View source: R/host_data.R

host_dataR Documentation

Add Host Phylogenetic Data To Community Data

Description

Adds host phylogenetic data from a tree to community data object.

Usage

host_data(com, tree, plant = "host_species", k = 4)

Arguments

com

a community data object.

tree

tree in 'ape' format with phylogenetic relationships between hosts. The tip labels should much values in a column of 'env' containing the host affiliation.

plant

name of the column in 'env' where the host plant names are stored.

k

the number of eigenvectors retained.

Details

Returns phylogenetic eigenvalues obtained from a Principal Coordinates Analysis calculated from the phylogenetic data.

Value

A list with community data.

Examples

host_data()

jgmv/comecol documentation built on June 6, 2023, 4:07 p.m.