Learn R Programming

paco (version 0.2.3)

prepare_paco_data: Prepare the data Simple wrapper to make sure that the matrices are sorted accordingly

Description

Prepare the data Simple wrapper to make sure that the matrices are sorted accordingly

Usage

prepare_paco_data(H, P, HP)

Arguments

H
Host distance matrix
P
Parasite distance matrix
HP
Host-parasite association matrix, hosts in rows

Value

A list with objects H, P, HP

Examples

Run this code
data(gopherlice)
library(ape)
gdist <- cophenetic(gophertree)
ldist <- cophenetic(licetree)
D <- prepare_paco_data(gdist, ldist, gl_links)

Run the code above in your browser using DataLab