View source: R/get_minimum_set.R
rpv_indices | R Documentation |
Get minimum set of individual indices to represent all alleles in a population
rpv_indices(tab)
tab |
an n x m matrix of individuals in rows and alleles in columns. |
a vector of integers representing row indices in the tab
data(monilinia)
i <- rpv_indices(monilinia)
i
all(colSums(monilinia[i, ], na.rm = TRUE) > 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.