purge_sibs: Purge siblings from large families

Description Usage Arguments Value Author(s)

Description

This function will take a random sample of n size of individuals from each family. For Families smaller than n, the entire family is represented.

Usage

1
purge_sibs(ids, fams, purge_to, returnDF = F)

Arguments

ids

vector of individuals IDS

fams

vector of family membership (family id) for each individual.

purge_to

the maximum family size to retain. Will randomly sample individuals from large families to obtain this size. Families smaller than this size are retained.

returnDF

logical if a sib-purged data frame should be returned or if a vector of individual ids should be returned.

Value

sib-purged data frame or vector of sib-purged individual ID's

Author(s)

Zak Robinson, Contact: zachary.robinson(at)umontana.com


zakrobinson/RSibPurge documentation built on June 29, 2019, 3:19 a.m.