count_missing_data function

for each individual count the number or loci missing and non_missing

for each individual count the number or loci missing and non_missing

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.

count_missing_data(D, gen_start_col)

Arguments

  • D: the data frame
  • gen_start_col: the column in which the genetic data starts

Returns

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)

  • Maintainer: Eric C. Anderson
  • License: CC0
  • Last published: 2024-01-24

Useful links