rpv_indices: Get minimum set of individual indices to represent all...

View source: R/get_minimum_set.R

rpv_indicesR Documentation

Get minimum set of individual indices to represent all alleles in a population

Description

Get minimum set of individual indices to represent all alleles in a population

Usage

rpv_indices(tab)

Arguments

tab

an n x m matrix of individuals in rows and alleles in columns.

Value

a vector of integers representing row indices in the tab

Examples

data(monilinia)
i <- rpv_indices(monilinia)
i
all(colSums(monilinia[i, ], na.rm = TRUE) > 0)

zkamvar/repvar documentation built on Jan. 7, 2025, 2:05 p.m.