count_missing_data {rubias} | R Documentation |
for each individual count the number or loci missing and non_missing
Description
Takes a rubias genetic data frame that must have column "indiv". Haploids have the second column at each locus totally missing. Diploids with missing data will have both gene copies missing.
Usage
count_missing_data(D, gen_start_col)
Arguments
D |
the data frame |
gen_start_col |
the column in which the genetic data starts |
Value
returns a data frame with indiv (as characters), n_non_miss_loci, n_miss_loci (as numeric) and missing_loci (as a list-column of named integer vectors)
[Package rubias version 0.3.4 Index]