Exclude any unavailable founders.
Arguments
- id
A character vector with the identifiers of each individuals
- dadid
A vector containing for each subject, the identifiers of the biologicals fathers.
- momid
A vector containing for each subject, the identifiers of the biologicals mothers.
- avail
A logical vector with the availability status of the individuals (i.e.
FALSE
= not available,TRUE
= available,NA
= unknown).- missid
A character vector with the missing values identifiers. All the id, dadid and momid corresponding to those values will be set to
NA_character_
.
Value
Returns a list with the following components:
n_trimmed Number of trimmed individuals
id_trimmed Vector of IDs of trimmed individuals
id Vector of subject identifiers
dadid Vector of father identifiers
momid Vector of mother identifiers