endosymbiont_1pop: Multiple infection profiles in one population

Description Usage Format Examples

Description

Presence/absence data about 3 endosymbionts in each of 10 individuals belonging to the same population.

Usage

1
data("endosymbiont_1pop")

Format

A data frame with 10 observations (each individual, in rows) on the following 3 variables (each endosymbiont, in columns): C, H, and W are numeric vectors indicating if the endosymbiont is detected. The presence of a symbiont in an individual is indicated by 1 and its absence by 0.

Examples

1
2
3
4
5
6
7
  data(endosymbiont_1pop)
  
  ## Compute the occurrence table of multiple infection profiles
  rev(table(apply(endosymbiont_1pop, 1, paste, collapse = "")))
  
  ## 110 011 010 
  ##   6   2   2

Mondrian documentation built on July 8, 2020, 5:45 p.m.