endosymbiont_1pop: Multiple infection profiles in one population

endosymbiont_1popR Documentation

Multiple infection profiles in one population

Description

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

Usage

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

  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

aursiber/Mondrian documentation built on March 13, 2024, 12:41 a.m.