count_missing_data: for each individual count the number or loci missing and...

Description Usage Arguments Value

View source: R/count_missing_data.R

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

1
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)


rubias documentation built on Feb. 10, 2022, 1:06 a.m.